private void Start() { playerStats = gameObject.GetComponent <PlayerStats>(); skeleton = GameObject.FindGameObjectWithTag("SkeleBoss").GetComponent <SkeleBossController>(); }
// Use this for initialization void Start() { skeleton = GameObject.FindWithTag("SkeleBoss").GetComponent <SkeleBossController>(); }