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

            target = transform;

            CreateDirectionManager();
        }
Example #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;
            }
        }