public void Tap() { if (CurState == null || CurState.Type == UnitStateType.Rest || CurState.Type == UnitStateType.Attack) { return; } if (CurState.Type != UnitStateType.Empowering) { CurState.SpeedUpTime(); } else { m_CurEmpowerTap++; if (m_CurEmpowerTap >= TapEmpower) { EmpowerOK(); } } }