void TriggerFly() { MainCharacterController controller = GameObject.Find("MainCharacter").GetComponent <MainCharacterController>(); controller.Fly(); }