예제 #1
0
 public bool LoseCondition(Stats.PlayerStats stats)
 {
     if (stats.Player_health == 0)
     {
         player.gameObject.SetActive(false);
         auntie_anne.gameObject.SetActive(false);
         return(true);
     }
     return(false);
 }
예제 #2
0
 public void Awake()
 {
     _playerStats = new Stats.PlayerStats();
     _player      = GetComponentInParent <Player>();
 }
예제 #3
0
 public void ChangePlayerHealth(Stats.PlayerStats stats, int mod)
 {
     stats.ModifyPlayerHealth(mod);
 }
예제 #4
0
 private void Start()
 {
     rb_2D        = GetComponent <Rigidbody2D>();
     player_stats = GetComponent <Stats.PlayerStats>();
     player_stats.Player_health = player_health_amount;
 }
예제 #5
0
 void DisplayDynamicUI(Stats.PlayerStats stats, Image progress_bar_image)
 {
     progress_bar_image.fillAmount = (float)stats.Player_health / 10.0f;
 }