Exemple #1
0
    void Awake()
    {
        tookDamageEvent    = new TookDamageEvent();
        floatingTextPrefab = (Resources.Load("FloatingText") as GameObject).GetComponent <FloatingText>();

        tookDamageEvent.AddListener(DisplayDamage);
    }
Exemple #2
0
 void Awake()
 {
     tookDamageEvent = new TookDamageEvent();
     health          = maxHealth;
 }