public void TetevenWeaken() { AttackAnimation.Play("Weaken"); CurrentState = BowState.Idle; Destroy(_arrowController.gameObject); _arrowController = null; }
public void Shoot(Camera playerCamera) { if (CurrentState == BowState.Ready) { _arrowController.Shoot(); _arrowController = null; CurrentState = BowState.Idle; StartCoroutine(DelayShoot()); } }
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); }