private void EffectResist(StatEffect effect) { DamageDisplay display = Instantiate(displayPrefab, displayParent); display.displayText.color = resistColor; display.displayText.text = "RESIST"; display.transform.position = display.transform.position - new Vector3(0, -0.1f, 0); }
private void DamageImmune() { DamageDisplay display = Instantiate(displayPrefab, displayParent); display.displayText.color = immuneColor; display.displayText.text = "IMMUNE"; display.transform.position = display.transform.position - new Vector3(0, -0.1f, 0); }
private void DisplayDamage() { DamageDisplay display = Instantiate(displayPrefab, displayParent); display.displayText.color = damageColor; display.displayText.text = "-" + Mathf.RoundToInt(dmgSinceLast); dmgSinceLast = 0; lastDisplay = Time.time; }