public void StartGame() { gameState = GameState.Started; OnStartGame?.Invoke(new GameInit(1f, 8)); ResolveType <IGameStart>() .ForEach(start => start.StartGame()); }
public virtual void StartGame() { SetMap(); OnStartGame?.Invoke(); window.writeln("Round: " + RoundsPassed++); StartRound(); }
public void StartGame() { _arenaTimer.Current = _gameTime; _arenaTimer.IsStop = false; Prepare(); OnStartGame?.Invoke(); }
/// <summary> /// Executes MAME, running the currently selected game. /// </summary> public void StartGame() { // End the currently playing game if (!_mameProcess.HasExited) { _invoker.Stop(_mameProcess); } OnStartGame?.Invoke(this, null); }
public void StartGame() { _gameover = false; UpdateCoins(); MainMenu.Hide(); GameOver.Hide(); ScoreScreen.Hide(); OnStartGame?.Invoke(); }
public void StartGame() { IsGameRunning = true; OnStartGame?.Invoke(); LevelController.StartLevel(); WaveController.InitWaves(); PlayerController.StartLevel(); TowerController.StartLevel(); }
private void OnStartGame(OnStartGame obj) { _btnSkins.transform.DOMoveX(_btnSkins.transform.position.x - _leftBtnPlace, 0.3f).OnComplete(() => { _btnSkins.SetActive(false); }); _btnVibro.transform.DOMoveX(_btnVibro.transform.position.x + _rightBtnPlace, 0.3f).OnComplete(() => { _btnVibro.SetActive(false); }); }
/// <summary> /// Starts the game. /// </summary> public static void StartGame() { try { State = GameState.InGame; OnStartGame.Invoke(null, null); } catch { } }
public void StartGame() { if (Time.realtimeSinceStartup - lastEndTime < 1) { return; } if (SceneManager.GetActiveScene() != SceneManager.GetSceneByName("GameScene")) { SceneManager.LoadScene("GameScene"); OnStartGame?.Invoke(); } }
public GameBL() { server = ServerBL.Instance; server.gameHubProxy.On("StartGame", (string roomId, Board board) => OnStartGame?.Invoke(roomId, board)); server.gameHubProxy.On("GetPlayerColor", (string roomId, CheckerColor color) => OnGetPlayerColor?.Invoke(roomId, color)); server.gameHubProxy.On("GetGameInvitation", (string room, string sender) => OnGameInvitation?.Invoke(room, sender)); server.gameHubProxy.On("DenyGame", (string username) => OnDenyInitation?.Invoke(username)); server.gameHubProxy.On("CurrentTurn", (string roomId, string username) => OnCurrentTurn?.Invoke(roomId, username)); server.gameHubProxy.On("GetUserName", (string userName) => OnGetPlayerName?.Invoke(userName)); server.gameHubProxy.On("UpdateBoard", (string roomId, Board board) => OnBoardUpdate?.Invoke(roomId, board)); server.gameHubProxy.On("DiceResult", (string room, int[] dice) => OnDiceResult?.Invoke(room, dice)); server.gameHubProxy.On("ChangeTurnStatus", (string roomId, TurnStatus turnStatus) => OnTurnStatusChange?.Invoke(roomId, turnStatus)); server.gameHubProxy.On("GameOver", (string roomid, string username) => OnGameOver?.Invoke(roomid, username)); server.gameHubProxy.On("GameClosed", (string room, string sender) => OnGameClosed?.Invoke(room, sender)); }
void Start() { IsGameEnd = false; IsEndInitialize = false; _totalMoney = 0; _tweetCanvas.gameObject.SetActive(false); _uiCollentMoney.Show(false); OnEndGame += () => { naichilab.RankingLoader.Instance.SendScoreAndShowRanking(_totalMoney); }; _thief.Initialize(); _thief.OnPutHand += () => { if (_uiTitle.IsShowing) { _uiCollentMoney.Show(true); _uiTitle.Show(false); _sleepHuman.StartSleepSequence(); OnStartGame?.Invoke(); } }; _thief.OnFinding += () => { _money += UnityEngine.Random.Range(100, 200); }; _thief.OnPullOutHand += () => { _uiCollentMoney.ApplyAcquireMoney(_money); _uiCollentMoney.ApplyTotalMoney(_totalMoney + _money); _totalMoney += _money; _money = 0; OnAcquireMoney?.Invoke(); }; _sleepHuman.Initialize(); DOTween.ToAlpha( () => _forground.color, (color) => _forground.color = color, 0f, _fadeInForground).onComplete = () => IsEndInitialize = true; }
public void StartGame(int gridSize, string pl1Name, string pl2Name) { time = Time.time; AnalyticsEvent.Custom("Start", new Dictionary <string, object>() { { "grid size", $"{gridSize+"X"+gridSize}" } }); gameNumber++; gameSave = new GameSave(); gameSave.gameNumber = gameNumber; gameSave.player1.Name = pl1Name; gameSave.player1.Score = 0; gameSave.player2.Name = pl2Name; gameSave.player1.Score = 0; currentType = ItemTypes.X; itemTypesCount = Enum.GetNames(typeof(ItemTypes)).Length; Config config = new Config(gridSize, gameSave); this.config = config; OnStartGame?.Invoke(config); }
public static void RaiseOnGameStartEvent() { OnStartGame?.Invoke(); }
private void OnClickStartGame() { OnStartGame?.Invoke(); }
private void StartGame() { musicList.gameObject.SetActive(false); noteSpace.gameObject.SetActive(true); OnStartGame?.Invoke(); }
protected void start_game() => OnStartGame?.Invoke();
private void SubscribeStartButton() => OnStartGame?.Invoke();
private async UniTask StartGameTask() { OnStartGame?.Invoke(); }
private void StartGameInitializate() { OnStartGame?.Invoke(); }
public void StartGame() { // todo: save this to memory cache/redis Game = _rummyEngine.InitilizeGame(Players); OnStartGame.Invoke(); }
public void StartGame() { _isPlaying = true; _score = 0; OnStartGame?.Invoke(); }
private void OnStartGame(OnStartGame obj) { _perectCounter = 0; }
public void SendStartGame() { OnStartGame?.Invoke(); }
private void Start() { OnStartGame.IsTablet(); }
private void OnStartGame(OnStartGame obj) { _isGameplay = true; }
public void BroadcastStartGame() { OnStartGame?.Invoke(); }
public static void BroadcastStartGame() => OnStartGame?.Invoke();
public void StartGame() { currentGameState = GameState.Playing; OnStartGame?.Invoke(); playerUI.CloseQuestsFrames(); }
public void NotifyOnStartGame() { OnStartGame?.Invoke(); }
public static void StartGame() { OnStartGame?.Invoke(); }