Ejemplo n.º 1
0
    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);
        }
    }
Ejemplo n.º 2
0
    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);
    }