Example #1
0
    public void TakeControls()
    {
        previouslyControlledObject     = controller.controlledObject;
        previouslyAxisControlledObject = controller.movableObject;

        controller.controlledObject = this;
        controller.movableObject    = null;
    }
Example #2
0
 private void Start()
 {
     controlledObject = GameObject.Find("Player").GetComponent <MovementController>();
     movableObject    = GameObject.Find("Player").GetComponent <MovementController>();
 }