Assets/Scripts/TowerDefense/Towers/TowerFireTrigger.cs
@@ -1,5 +1,3 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; using TowerDefense.Affectors; @@ -14,13 +12,12 @@ { public AttackAffector Affector; private bool isStart; // private bool isStart; private float duration; // private float duration; public void OnFire() { // cx test // if (!isStart) // { // isStart = true; @@ -33,10 +30,10 @@ Affector.FireProjectile(); } private void Update() { if (isStart) duration += Time.deltaTime; } // private void Update() // { // if (isStart) // duration += Time.deltaTime; // } } }