private void DisolveChangeDirectionInterfaces() { for (int i = 0; i < changeDirectionables.Length; i++) { IChangeDirection changeController = changeDirectionables[i]; changeController.OnChangeDirection -= ChangeDirection; } }
private void Reset() { IChangeDirection aux = gameObject.GetComponent <IChangeDirection>(); target = transform; CreateDirectionManager(); }
private void SetUpChangeDirectionInterfaces() { changeDirectionables = StaticUtilities.ReturnInterfacesFromComponentsAndAnyControllerStates <IChangeDirection>(gameObject); for (int i = 0; i < changeDirectionables.Length; i++) { IChangeDirection controller = changeDirectionables[i]; controller.OnChangeDirection += ChangeDirection; } }