Exemple #1
0
        private void MoveRight()
        {
            switch (state)
            {
            case ChaserStatus.Idle:
                state = ChaserStatus.Right;
                break;

            case ChaserStatus.Left:
                MoveForward();
                state = ChaserStatus.Left;
                break;
            }
        }
Exemple #2
0
 private void Awake()
 {
     state = ChaserStatus.Stop;
     speed = 0;
 }