public void ShowHealthChange(int change) { Color color; color = Color.red; if (hexUnit.Location.IsVisible) { HexCellTextEffect effect = Instantiate(textEffect).GetComponent <HexCellTextEffect>(); effect.Show(change.ToString(), hexUnit.transform, color); } }
protected void PlayTextEffect(string text, HexCell cell, Color color, int time = 0) { HexCellTextEffect effect = Instantiate(config.TextEffect).GetComponent <HexCellTextEffect>(); effect.Show(text, cell.transform, color, time); }