Esempio n. 1
0
 private void DisolveChangeDirectionInterfaces()
 {
     for (int i = 0; i < changeDirectionables.Length; i++)
     {
         IChangeDirection changeController = changeDirectionables[i];
         changeController.OnChangeDirection -= ChangeDirection;
     }
 }
Esempio n. 2
0
        private void Reset()
        {
            IChangeDirection aux = gameObject.GetComponent <IChangeDirection>();

            target = transform;

            CreateDirectionManager();
        }
Esempio n. 3
0
        private void SetUpChangeDirectionInterfaces()
        {
            changeDirectionables = StaticUtilities.ReturnInterfacesFromComponentsAndAnyControllerStates <IChangeDirection>(gameObject);

            for (int i = 0; i < changeDirectionables.Length; i++)
            {
                IChangeDirection controller = changeDirectionables[i];
                controller.OnChangeDirection += ChangeDirection;
            }
        }