Esempio n. 1
0
 private void Awake()
 {
     harvestableInterface = GetComponent <HarvestableBehaviour>();
     flammableInterface   = GetComponent <FlammableBehaviour>();
 }
Esempio n. 2
0
 private void Awake()
 {
     flammableInterface = gameObject.GetComponentIfUnassigned(flammableInterface);
     _harvestable       = gameObject.GetComponent <HarvestableBehaviour>();
 }