// Vector3 movement = Vector3.zero; // Use this for initialization void Start() { anim = GetComponent<Animator> (); //access to controller and other connected scripts BossWolf = GetComponent<BossWolfAI>(); isRotated = false; // starts health check in 3 seconds and to repeat every second after //InvokeRepeating ("CheckHealth", 3, 1); //controller = GetComponent<CharacterController> (); }
// Use this for initialization void Start() { cam = GameObject.Find ("Main Camera"); BossWolf = GameObject.FindWithTag("Boss"); BossWolfAI = BossWolf.GetComponent<BossWolfAI> (); cPos = cam.GetComponent<CameraFollow> (); bar1.SetActive (true); bar2.SetActive (true); bar3.SetActive (true); wave = 0; delay = 2f; numWaves = 0; }