Example #1
0
 void Start()
 {
     player = GameObject.FindGameObjectWithTag("Player").GetComponent <NPlayerMovement>();
     try
     {
         healthbar = GameObject.FindGameObjectWithTag("HealthBar").GetComponent <NHealthBar>();
     }
     catch
     {
     }
 }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     Player = GameObject.FindGameObjectWithTag("Player").GetComponent <NPlayerMovement>();
 }