protected void MakeDamageText() { DamageText dt = damageDoneTexts[nextDamageText].GetComponent <DamageText>(); if (damageDoneTexts[nextDamageText].activeInHierarchy == true) { dt.EndAscent(); } damageDoneTexts[nextDamageText].transform.localPosition = new Vector3(0f, damageTextVerticalOffset, 0f); string txt = "-" + damageDonePreviousFixedFrameFrame.ToString(); dt.text.text = txt; if (health == 0) { dt.text.color = finalHitTextColor; } else { dt.text.color = damageTextColor; } damageDoneTexts[nextDamageText].SetActive(true); dt.BeginAscent(); nextDamageText = (nextDamageText + 1) % damageDoneTexts.Length; }