Example #1
0
 public void Update()
 {
     SelectedCompanion = LevelProgression.GetComponent <CompanionProgression>().SelectedCompanion;
     if (RunMe == true)
     {
         CompanionSwitch();
     }
 }
Example #2
0
 public void Start()
 {
     Player = GameObject.Find("/Player Character/PlayerCharacter_BaseRig");
     CompanionRespawnPoint = GameObject.Find("/Player Character/PlayerCharacter_BaseRig/CompanionRespawn");
     LevelProgression      = GameObject.Find("/LevelProgression");
     HealthCompanion       = GameObject.Find("/Companion_Pig");
     DamageCompanion       = GameObject.Find("/Companion_Bee");
     SpeedCompanion        = GameObject.Find("/Companion_Crow");
     DefenseCompanion      = GameObject.Find("/Companion_Turtle");
     BasePlayerHealth      = Player.GetComponent <PlayerHealth>().healthMax;
     BasePlayerDamage      = Player.GetComponent <PlayerAttack>().attackDamage;
     BasePlayerSpeed       = Player.GetComponent <PlayerMovement>().tempSpeed;
     SelectedCompanion     = LevelProgression.GetComponent <CompanionProgression>().SelectedCompanion;
     CompanionSwitch();
 }