chenxin
2020-12-08 ff228d1c9534d6e66b241563fd31eb81af8a38d2
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;
        // }
    }
}