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