예제 #1
0
파일: Berry.cs 프로젝트: Bruno13/TheForest
 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;
 }
예제 #2
0
 public override void OnDisable()
 {
     LOD_Stats.SetInt(this, this.Health);
 }
예제 #3
0
 public override void OnEnable()
 {
     this.Health = LOD_Stats.GetInt(this, 4);
 }
예제 #4
0
파일: Berry.cs 프로젝트: Bruno13/TheForest
 public override void OnDisable()
 {
     LOD_Stats.SetBool(this, this.BerryTaken);
 }