private IEnumerator FullnessChanging() { while (true) { yield return(new WaitForSeconds(TimeBetweenFullnessChanges)); if (_panda == null) { break; } _panda.ChangeFullness(FullnessChangeDelta); if (_panda.GetFullness() <= 0) { StartCoroutine(Die()); break; } } }
public bool CanMateWith(IPanda otherPanda) { return((!_flag.IsDuringActivity) && (otherPanda.GetGender() != _thisPanda.GetGender()) && (_thisPanda.GetEro() > _EroThresholdForSex) && _thisPanda.GetFullness() > GameManager.instance.pandaManager.GetMinimumFullnessForMating()); }