コード例 #1
0
ファイル: HitFinishLine.cs プロジェクト: NoelMelia/Mobile3rd
 void Start()
 {
     healthController = MobileHealthController.FindHealthController();
     //Tried to Update health on each level but couldnt
     //healthController.currentHealth = healthController.UpdateHealth();
     //Debug.Log(healthController.currentHealth);
 }
コード例 #2
0
ファイル: healthPickUp.cs プロジェクト: NoelMelia/Mobile3rd
 private void Start()
 {
     //sc = FindObjectOfType<SoundController>();
     sc = SoundController.FindSoundController();//Find Sound Controller
     //Finding the health Controller
     Health = FindObjectOfType <MobileHealthController>();
 }
コード例 #3
0
    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);
    }
コード例 #4
0
 void Start()
 {
     healthController = MobileHealthController.FindHealthController();
 }