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