Esempio n. 1
0
 void Start()
 {
     healthController = MobileHealthController.FindHealthController();
     //Tried to Update health on each level but couldnt
     //healthController.currentHealth = healthController.UpdateHealth();
     //Debug.Log(healthController.currentHealth);
 }
Esempio n. 2
0
 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);
    }
Esempio n. 4
0
 void Start()
 {
     healthController = MobileHealthController.FindHealthController();
 }