public override void ETest() { if (CooldownE && IndE.levelNum > 0) { stoppingAttack = Input.GetKeyUp(KeyCode.E); Ab3 = Input.GetKey(KeyCode.E); bool leftClick = Input.GetMouseButton(0); bool touch = Input.GetKeyDown(KeyCode.E); if (Ab3 && !stoppingAttack && anythingWorks) { EIndicator.SetActive(true); EPressed = true; } else if ((EPressed || (leftClick && Ab3)) && anythingWorks) { EIndicator.SetActive(false); EPressed = false; EIndicator.GetComponent <TargetCreepExtra>().knockVis.SetActive(false); isInvisible = false; activateE(); } else { EIndicator.SetActive(false); EIndicator.GetComponent <TargetCreepExtra>().knockVis.SetActive(false); EPressed = false; } if (Ab3 && endingAttack) { anythingWorks = false; EIndicator.GetComponent <TargetCreepExtra>().knockVis.SetActive(false); } if (touch) { anythingWorks = true; endingAttack = false; } } }
public CUIInicatorArgs(int idNo, string name, EIndicator status) { this.idNo = idNo; this.name = name; this.status = status; }
/// <summary> /// 显示启动状态 /// </summary> /// <param name="status"></param> public void Indicator(EIndicator status) { OnUIInidcatorArgs.OnEvented(new CUIInicatorArgs(idNo, name, status)); }