private void MoveRight() { switch (state) { case ChaserStatus.Idle: state = ChaserStatus.Right; break; case ChaserStatus.Left: MoveForward(); state = ChaserStatus.Left; break; } }
private void Awake() { state = ChaserStatus.Stop; speed = 0; }