Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     healthScript = this.gameObject.GetComponent <Dave_Health>();
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     healthScript = GameObject.FindGameObjectWithTag("Player").GetComponent <Dave_Health>();
 }