public void Use() { if (fm.time >= fm.curTime + fm.activityToMake.timeOfExec) { fm.Clear(); fm.ToWanderState(); } }
public void UpdateState() { fm.Uptime(); if (!cleared) { fm.Clear(); cleared = true; } if (arrived) { Out(); } else { GoOut(); } }