|
|
@@ -270,8 +270,8 @@ public class MoveCharacter : Character
|
|
|
{
|
|
|
injuryNum = Instantiate(injuryNumTextSummon);
|
|
|
injuryNum.transform.position = new Vector3(
|
|
|
- transform.position.x + injuryNumPos_summon.x + Random.Range(-injuryNumRandom_summon.x, injuryNumRandom_summon.x),
|
|
|
- transform.position.y + injuryNumPos_summon.y + Random.Range(-injuryNumRandom_summon.y, injuryNumRandom_summon.y),
|
|
|
+ transform.position.x + injuryNumPos_summon.x + Random.Range(-injuryNumRandom_summon.x / 2f, injuryNumRandom_summon.x / 2f),
|
|
|
+ transform.position.y + injuryNumPos_summon.y + Random.Range(-injuryNumRandom_summon.y / 2f, injuryNumRandom_summon.y / 2f),
|
|
|
transform.position.z);
|
|
|
}
|
|
|
//²»ÊÇÆðÊÖʽ
|
|
|
@@ -279,10 +279,11 @@ public class MoveCharacter : Character
|
|
|
{
|
|
|
injuryNum = Instantiate(injuryNumText);
|
|
|
injuryNum.transform.position = injuryNum.transform.position = new Vector3(
|
|
|
- transform.position.x + injuryNumPos_march.x + Random.Range(-injuryNumRandom_march.x, injuryNumRandom_march.x),
|
|
|
- transform.position.y + injuryNumPos_march.y + Random.Range(-injuryNumRandom_march.y, injuryNumRandom_march.y),
|
|
|
+ transform.position.x + injuryNumPos_march.x + Random.Range(-injuryNumRandom_march.x / 2f, injuryNumRandom_march.x / 2f),
|
|
|
+ transform.position.y + injuryNumPos_march.y + Random.Range(-injuryNumRandom_march.y / 2f, injuryNumRandom_march.y / 2f),
|
|
|
transform.position.z);
|
|
|
}
|
|
|
+
|
|
|
TextMeshProUGUI text = injuryNum.GetComponentInChildren<TextMeshProUGUI>();
|
|
|
text.text = damage.ToString();
|
|
|
if (gameObject.CompareTag("Player"))
|