void Start() { healthController = MobileHealthController.FindHealthController(); //Tried to Update health on each level but couldnt //healthController.currentHealth = healthController.UpdateHealth(); //Debug.Log(healthController.currentHealth); }
private void Start() { //sc = FindObjectOfType<SoundController>(); sc = SoundController.FindSoundController();//Find Sound Controller //Finding the health Controller Health = FindObjectOfType <MobileHealthController>(); }
public static MobileHealthController FindHealthController() { //Method to Finding the Controller if there is one MobileHealthController sc = FindObjectOfType <MobileHealthController>(); if (!sc) { Debug.LogWarning("Missing Health controller"); } return(sc); }
void Start() { healthController = MobileHealthController.FindHealthController(); }