Darkfafi / Mythe_Orion_Game

Game for mobile school project Mythe Orion
1 stars 0 forks source link

Overbodig #16

Open RichardRam87 opened 9 years ago

RichardRam87 commented 9 years ago
    public virtual void GetDamage(int dmg){
        GetComponent<Health> ().RemoveHealth (dmg);
    } 

Bestand: https://github.com/Darkfafi/Mythe_Orion_Game/blob/master/Assets/_Scripts/Actors/Creature.cs

Deze referentie bestaat al, GetComponent is dus niet nodig. Deze functie is aan te roepen aangezien je hier al een privé variabele van hebt.

Darkfafi commented 9 years ago

haha niet aan gedacht... Dank u wel! Is verbeterd!