Beispiel #1
0
 // Start is called before the first frame update
 void Start()
 {
     updateHealthTextEvent.AddListener(UpdateHealthText);
     healthText = FindObjectOfType <HealthTextScript>();
     UpdateHealthText();
     if (Debug.isDebugBuild || Application.isEditor)
     {
         bIsDebug = true;
     }
     currentKeyboard = Keyboard.current;
 }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     // Gets reference of Yoshi's health script
     _healthTextScript = FindObjectOfType <HealthTextScript>();
 }
Beispiel #3
0
 // Start is called before the first frame update
 void Start()
 {
     _audioSource      = GetComponent <AudioSource>();
     _healthTextScript = FindObjectOfType <HealthTextScript>();
 }