public void addEffectText(Vector3 position, string text, Color color) { EffectText effectText = new EffectText(); effectText.set(text, position, mainMechanics, color); effectsList.Add(effectText); }
public void PoolEffect(int damage, Vector3 position) { EffectText text = damageEffectPool.ActiveObject(position) as EffectText; text.Init(damage.ToString(), damage > 0 ? TextColorType.Green : TextColorType.Red); }