Exemple #1
0
 IEnumerator WeakPointCycle()
 {
     while (m_DamageSystem.GetCurState() != DamageState.DEATH)
     {
         ShowWeakPoint();
         yield return(new WaitForSeconds(delayShowTime));
     }
 }
 private void OnMouseDown()
 {
     m_damageSystem.Damage(20);
     Debug.Log(name + "血量为" + m_damageSystem.GetCurHealth() + ",状态为" + m_damageSystem.GetCurState());
 }