public override void OnEnable() { this.BerryTaken = LOD_Stats.GetBool(this, false); this.Sheen.SetActive(!this.BerryTaken); this.PickUp.SetActive(false); this.GetComponent <Renderer>().enabled = !this.BerryTaken; this.GetComponent <Collider>().enabled = !this.BerryTaken; }
public override void OnDisable() { LOD_Stats.SetInt(this, this.Health); }
public override void OnEnable() { this.Health = LOD_Stats.GetInt(this, 4); }
public override void OnDisable() { LOD_Stats.SetBool(this, this.BerryTaken); }