Merge branch 'master' of http://172.16.1.52:8090/r/GemBattle into master
| | |
| | | public void OnBuffSelectCompleted(int index) |
| | | { |
| | | isBuffSelectCompleted = false; |
| | | EndlessBuffManager.instance.AddBuff(EndlessBuffData.GetBuffById(22)); |
| | | EndlessBuffManager.instance.AddBuff(EndlessBuffData.GetBuffByIndex(index)); |
| | | EventCenter.Ins.BroadCast((int)KTGMGemClient.EventType.EndlessBuffRefresh); |
| | | } |
| | | |
| | |
| | | { |
| | | 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; |
| | | // } |
| | | } |
| | | } |