private void LaunchLogic() { _launchTimer += Time.deltaTime; if (CanLaunch()) { _launcher.Launch(this); _launchTimer = 0; } }
public static async Task <LaunchGameInfo> FakeLaunchGame(this ILaunch mediator, Game game) { LaunchGameInfo parameters = null; A.CallTo(() => mediator.Launch(A <LaunchGameInfo> ._)) .Invokes((LaunchGameInfo x) => parameters = x) .ReturnsLazily(() => Task.FromResult(default(Process))); await game.Launch((dynamic)mediator); return(parameters); }
protected async Task <Process> LaunchNormal(ILaunch launcher, LaunchState ls) => await launcher.Launch(await GetDefaultLaunchInfo(ls).ConfigureAwait(false)) .ConfigureAwait(false);