// Use this for initialization void Start() { Player = GameObject.FindGameObjectWithTag("Player"); PlayerAnimator = GameObject.FindGameObjectWithTag("Player").GetComponent <Animator>(); OriginalHp = Hp; boss03 = GameObject.FindGameObjectWithTag("Boss03").GetComponent <Boss03>(); }
// Use this for initialization void Start() { boss03 = FindObjectOfType <Boss03>(); }
void Start() { boss03 = GameObject.FindObjectOfType <Boss03>(); health = boss03.getHealth(); newHealth = health; }