Exemple #1
0
 void Awake()
 {
     playerhealth = FindObjectOfType <PPlayerHealth>();
     try
     {
         healthbar = GameObject.FindGameObjectWithTag("HealthBar").GetComponent <PHealthBar>();
     }
     catch
     {
     }
 }