ChensGradiusMod
Chen.GradiusMod.Drones.Drone
Drone.ReplaceBrokenModel(GameObject, GameObject, Renderer, GameObject[]) Method
Replaces the model of the broken interactable that was cloned from a vanilla broken drone, and makes the new model interactable and highlightable.
protected void ReplaceBrokenModel(GameObject brokenObject, GameObject customBrokenModel, Renderer highlightRenderer, params GameObject[] extraInteractableParts);
Parameters
brokenObject UnityEngine.GameObject
The cloned broken interactable.
customBrokenModel UnityEngine.GameObject
The new model of the broken interactable.
highlightRenderer UnityEngine.Renderer
The renderer that is highlighted when looking at the interactable.
extraInteractableParts UnityEngine.GameObject[]
Other parts of the model with colliders that should also be interactable.