void Awake() { Boss.boss = this; playerCont = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>(); player = playerCont; motor = GetComponent <YetiMotor>(); icicles = GetComponent <IcicleManager> (); }
void Start() { miniCrystals = GetComponentInChildren <MiniCrystalManager>(); icicleManager = GetComponentInChildren <IcicleManager>(); animator = GetComponentInChildren <Animator>(); damageable = GetComponent <Damageable>(); Player = GameObject.Find("Player"); playerTransform = Player.GetComponent <Transform>(); damageable.immuneTo = Team.Player; }