コード例 #1
0
 public void ShowDText(int Damage)
 {
     foreach (GameObject DamageText in DamageTexts)
     {
         if (!DamageText.activeSelf)
         {
             Debug.Log("show damage int !!!!!");
             DamageText.GetComponent <TextMeshProUGUI>().color = Color.white;
             DamageText.GetComponent <DisableTimer>().ResetTimer();
             DamageText.GetComponent <DisableTimer>().Resize(Damage);
             DamageText.GetComponent <TextMeshProUGUI>().text = Damage.ToString();
             DamageText.SetActive(true);
             return;
         }
     }
 }