public void TakeControls() { previouslyControlledObject = controller.controlledObject; previouslyAxisControlledObject = controller.movableObject; controller.controlledObject = this; controller.movableObject = null; }
private void Start() { controlledObject = GameObject.Find("Player").GetComponent <MovementController>(); movableObject = GameObject.Find("Player").GetComponent <MovementController>(); }