Exemple #1
0
 void Awake()
 {
     Boss.boss  = this;
     playerCont = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>();
     player     = playerCont;
     motor      = GetComponent <YetiMotor>();
     icicles    = GetComponent <IcicleManager> ();
 }
Exemple #2
0
    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;
    }