Beispiel #1
0
 private void Awake()
 {
     slimeAnimator = this.GetComponent <Animator>();
     stats         = this.GetComponent <Mob_Stats>();
     SetAnimation();
     InvokeRepeating("Execute", 0, 0.5f);
 }
Beispiel #2
0
 private void GetEnemy()
 {
     Enemy = PC2.Opponent;
     MS    = Enemy.GetComponent <Mob_Stats>();
     //if it's a slime, make the background normal, disable the boss sprite and the enemy images all slimes.
     //If it's a boss, make the background spooky, disable the enemy images, and set the boss sprite to the boss.
     if (Enemy.name.Contains("Slime"))
     {
         isBoss = false;
         EnemySetup();
     }
     else
     {
         isBoss = true;
         BossSetup();
     }
 }