Пример #1
0
    //playerHealth = FindObjectOfType(typeof(HealthStatusBarScript));

    void Awake()
    {
        playerHealth = gameObject.GetComponent <HealthStatusBar>();
    }
Пример #2
0
 void Awake()
 {
     healthscript = gameObject.GetComponent<HealthStatusBar>();
 }
Пример #3
0
 void Awake()
 {
     healthscript = gameObject.GetComponent <HealthStatusBar>();
 }
Пример #4
0
 void Start()
 {
     health = gameObject.GetComponent <HealthStatusBar>();
 }
 //playerHealth = FindObjectOfType(typeof(HealthStatusBarScript));
 void Awake()
 {
     playerHealth = gameObject.GetComponent<HealthStatusBar>();
 }
 void Start()
 {
     health = gameObject.GetComponent<HealthStatusBar>();
 }