示例#1
0
 public void MosterStateUpdate()
 {
     if (MostersManager.instance.IsEliminatedDark(this))         // si version dark eliminé
     {
         moster_exploration.gameObject.SetActive(false);
     }
     else if (MostersManager.instance.IsEliminated(this))         //si juste la version normale éliminé
     {
         moster_battle.sprite_animator.runtimeAnimatorController      = GetDarkAnimatorController();
         moster_exploration.sprite_animator.runtimeAnimatorController = GetDarkAnimatorController();
         moster_exploration.transform.position      = dark_transform.position;
         moster_exploration.transform.localScale    = dark_transform.localScale;
         moster_exploration.transform.localRotation = dark_transform.localRotation;
         dark_object_activator.Change();
         moster_battle.phase_increment_bonus_ratio *= 1.5f;
         moster_battle.life *= 2;
         moster_battle.attack_total_time      *= 0.9f;
         moster_battle.attack_min_gap_time    /= 2;
         moster_battle.after_burst_attack_time = 0f;
     }
     else         //si la version normale a jamais été eliminé
     {
         moster_battle.sprite_animator.runtimeAnimatorController      = GetAnimatorController();
         moster_exploration.sprite_animator.runtimeAnimatorController = GetAnimatorController();
     }
     moster_battle.visuals_transform.localScale      = visuals_transform.localScale;
     moster_exploration.visuals_transform.localScale = visuals_transform.localScale;
 }