Esempio n. 1
0
 // Start is called before the first frame update
 void Start()
 {
     controller = GetComponentInParent <wasdCharacterController>();
     heroScore  = GetComponentInParent <Score>();
 }
Esempio n. 2
0
 private void Start()
 {
     curEnergyLevel = maxEnergyLevel;
     controller     = GetComponentInParent <wasdCharacterController>();
     energyText     = GameObject.Find("EnergyUI").GetComponent <Text>();
 }