Open RichardRam87 opened 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.
haha niet aan gedacht... Dank u wel! Is verbeterd!
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.