LAPTOP-OM1V99U2\永远de小亡灵 há 1 ano atrás
pai
commit
7fdc888f0e
1 ficheiros alterados com 0 adições e 13 exclusões
  1. 0 13
      ActionTowerDefense/Assets/Scripts/Boss/Weakness.cs

+ 0 - 13
ActionTowerDefense/Assets/Scripts/Boss/Weakness.cs

@@ -28,19 +28,6 @@ public class Weakness : Character
             {
                 hp -= damage;
 
-                //É˺¦Ìø×Ö
-                if (showInjuryNum)
-                {
-                    GameObject injuryNum = Instantiate(injuryNumText);
-                    injuryNum.transform.position = new Vector3(transform.position.x + Random.Range(-1f, 1f), transform.position.y + 1, transform.position.z);
-                    TextMeshProUGUI text = injuryNum.GetComponentInChildren<TextMeshProUGUI>();
-                    text.text = damage.ToString();
-                    if (gameObject.CompareTag("Player"))
-                    {
-                        text.color = Color.red;
-                    }
-                }
-
                 if (hp <= 0)
                 {
                     ChangeState(CharacterState.Die);