public void MoveToPlaceWithDelay(Place p, float delay) { IOController.io.readyToAct = false; currentLocation.OnPlayerExit(); goingTo = p; goingToTimer = new GameTimeTimer(delay, MoveToCallback); goingToTimer.StartForcing(); }
private void MoveToCallback() { currentLocation = goingTo; goingTo = null; goingToTimer = null; currentLocation.OnPlayerEnter(); IOController.io.readyToAct = true; }
public override void Perform(string[] arguments) { base.Perform(arguments); if (timer == null) { timer = new GameTimeTimer(8, Stop); } IOController.io.LogLewd("You slip your hand under your pants and start masturbating"); IOController.io.LogLewd("Unable to contain yourself any longer you start moaning"); GameManager.Sound.PlaySoundByName("Moan"); timer.StartForcing(); }
public override void Perform(string[] arguments) { base.Perform(arguments); if (timer == null) { timer = new GameTimeTimer(huntingDuration, Hunting); } if (!GameManager.Navigation.currentLocation.hasWildlife) { IOController.io.Log("There is no wildlife here"); return; } IOController.io.readyToAct = false; IOController.io.Log("You start hunting..."); timer.StartForcing(); }