public void ShowDmgText(Vector3 pos, float dmg, int type, bool isReinforced) { GameObject text = GameManager.Inst().ObjManager.MakeObj("DamageText"); text.transform.position = pos; text.SetActive(true); DamageText dmgText = text.GetComponent <DamageText>(); if (type == (int)DamageType.PLAYERHEAL) { dmgText.SetPlusText(dmg); } else { dmgText.SetText(dmg); } dmgText.SetSize(dmgText.DefaultSize); dmgText.SetColor(type); if (isReinforced) { //text.transform.localScale = Vector3.one * 2.0f; dmgText.SetSize(48); dmgText.SetColor((int)DamageType.REINFORCED); } ActivationTimer timer = text.GetComponent <ActivationTimer>(); timer.IsStart = true; }