chenxin
2020-11-25 b2722bf84115092dcf61a0f612b737c20eb11f27
Assets/Scripts/TowerDefense/Towers/TowerFireTrigger.cs
@@ -1,5 +1,3 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TowerDefense.Affectors;
@@ -14,9 +12,9 @@
    {
        public AttackAffector Affector;
        private bool isStart;
        // private bool isStart;
        private float duration;
        // private float duration;
        public void OnFire()
        {
@@ -33,10 +31,10 @@
            Affector.FireProjectile();
        }
        private void Update()
        {
            if (isStart)
                duration += Time.deltaTime;
        }
        // private void Update()
        // {
        //     if (isStart)
        //         duration += Time.deltaTime;
        // }
    }
}