| | |
| | | { |
| | | public AttackAffector Affector; |
| | | |
| | | private bool isStart; |
| | | // private bool isStart; |
| | | |
| | | private float duration; |
| | | // private float duration; |
| | | |
| | | public void OnFire() |
| | | { |
| | | // cx test |
| | | // if (!isStart) |
| | | // { |
| | | // isStart = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Debug.Log($"--------------------- {duration} ---------------------"); |
| | | // duration = 0; |
| | | // } |
| | | // if (!isStart) |
| | | // { |
| | | // isStart = true; |
| | | // } |
| | | // else |
| | | // { |
| | | // Debug.Log($"--------------------- {duration} ---------------------"); |
| | | // duration = 0; |
| | | // } |
| | | Affector.FireProjectile(); |
| | | } |
| | | |
| | | private void Update() |
| | | { |
| | | if (isStart) |
| | | duration += Time.deltaTime; |
| | | } |
| | | // private void Update() |
| | | // { |
| | | // if (isStart) |
| | | // duration += Time.deltaTime; |
| | | // } |
| | | } |
| | | } |