public static void OnLoadStart() { LevelPlayground.SetLevelState(LevelPlayground.LevelState.Unknown); Scenes.GoToScene(Scenes.Types.Start); Server.Report(Server.ReportComands.RestartLevel); }
private void OnLose() { Destroy(gameObject); LevelPlayground.SetLevelState(LevelPlayground.LevelState.LoseLevel); Scenes.GoToScene(Scenes.Types.Result); }
public static void OnContinueLevelByMoney() { GameData.ReduceCurrency(Configs.Balance.PaymentForContinue); LevelPlayground.SetLevelState(LevelPlayground.LevelState.Unknown); Server.Report(Server.ReportComands.NextLevelByMoney); Scenes.GoToScene(Scenes.Types.Level); }
public static void OnContinueLevel() { LevelPlayground.Resetlevels(); LevelPlayground.SetLevelState(LevelPlayground.LevelState.Unknown); Server.Report(Server.ReportComands.NextLevel); Scenes.GoToScene(Scenes.Types.Level); }
public static void RestartGame() { Scenes.ResetManager(); Configs.ResetManager(); Profile.ResetManager(); Events.ResetManager(); Sounds.ResetManager(); Server.ResetManager(); LevelPlayground.SetLevelState(LevelPlayground.LevelState.Unknown); Scenes.GoToScene(Scenes.Types.Start); Debug.Log("Game restarted"); }
private void OnTriggerEnter2D(Collider2D other) { if (mIsFired) { return; } if (other.gameObject.name == "Wheel") { OnTriggerWheel(other.gameObject); Events.LaunchEvent(Events.Types.NextBullet, Scenes.ActiveScene); } else if (other.gameObject.name == "barrier" || other.gameObject.name == "bullet") { LevelPlayground.SetLevelState(LevelPlayground.LevelState.LoseLevel); LevelPlayground.ActiveBulletIndex = 0; OnTriggerBarrier(other.gameObject); } }