예제 #1
0
 public void TetevenWeaken()
 {
     AttackAnimation.Play("Weaken");
     CurrentState = BowState.Idle;
     Destroy(_arrowController.gameObject);
     _arrowController = null;
 }
예제 #2
0
 public void Shoot(Camera playerCamera)
 {
     if (CurrentState == BowState.Ready)
     {
         _arrowController.Shoot();
         _arrowController = null;
         CurrentState     = BowState.Idle;
         StartCoroutine(DelayShoot());
     }
 }
예제 #3
0
        public void TetevenPull()
        {
            _currentPullTime = 0;

            var arrowGo = Instantiate(ArrowPrefab);

            arrowGo.transform.parent        = ArrowPosition;
            arrowGo.transform.localPosition = Vector3.zero;
            arrowGo.transform.localRotation = Quaternion.identity;
            _arrowController = arrowGo.GetComponent <ArrowController>();
            _arrowController.Init(_gameManager);

            AttackAnimation.Play("Pull");

            CurrentState = BowState.Pull;
            SoundManager.PlaySFX(WorldConsts.AudioConsts.BowString, false, 0.3f);
        }