void Start() { memoryLeap = GetComponent <IrisMemoryLeap>(); movement = GetComponent <IrisMovement>(); currentState = IrisStates.Move; ChangeScripts(true); }
public void ChangeStates() { OnStateChanged.Invoke(); switch (currentState) { case IrisStates.Move: currentState = IrisStates.MemoryLeap; ChangeScripts(true); break; case IrisStates.MemoryLeap: currentState = IrisStates.Move; ChangeScripts(false); break; } }