コード例 #1
0
 void Start()
 {
     memoryLeap   = GetComponent <IrisMemoryLeap>();
     movement     = GetComponent <IrisMovement>();
     currentState = IrisStates.Move;
     ChangeScripts(true);
 }
コード例 #2
0
    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;
        }
    }