public void ChangeNeeds() { if (CurrentState != State.DEAD) { if (CurrentState == State.RUNNING_AWAY) { NeedSprite.sprite = ScaredSprite; return; } CurrentNeed = Needs.Saturation(); switch (CurrentNeed) { case Needs.Need.HUNGER: NeedSprite.sprite = FoodSprite; break; case Needs.Need.THIRST: NeedSprite.sprite = ThirstSprite; break; case Needs.Need.TOILET: NeedSprite.sprite = ToiletSprite; break; case Needs.Need.LIBIDO: NeedSprite.sprite = LibidoSprite; break; default: NeedSprite.sprite = null; break; } } }
public void Reset() { CurrentPartner = null; Gender = 0; MinAge = 5; YearOfBirth = 0; Children.Clear(); Parents.Clear(); Ticks = 0; Needs = new Needs(); CurrentNeed = Needs.Need.NONE; Instance = this; CurrentState = State.DEFAULT; }