Esempio n. 1
0
    void DeductHealth(float amount)
    {
        spawnedIndicator = Instantiate(DamageIndicator) as GameObject;
        IndicatorBehavior behavior = spawnedIndicator.GetComponent <IndicatorBehavior>();

        behavior.Text = MinusSignString + amount.ToString();
    }
Esempio n. 2
0
    void AddHealth(float amount)
    {
        spawnedIndicator = Instantiate(HealIndicator) as GameObject;
        IndicatorBehavior behavior = spawnedIndicator.GetComponent <IndicatorBehavior>();

        behavior.Text = AddSignString + amount.ToString();
    }
Esempio n. 3
0
    void SetIndicatorTarget(Character character)
    {
        IndicatorBehavior behavior = spawnedIndicator.GetComponent <IndicatorBehavior>();

        behavior.SetCharacter(character);
    }