private void GameMatControlsDelegate(GameState newState) { ps.GameState = newState; switch (newState) { case GameState.GAME_UI: YipliHelper.SetGameClusterId(0); break; case GameState.GAME_PLAY: YipliHelper.SetGameClusterId(1); break; case GameState.GAME_NEW_LIFE: YipliHelper.SetGameClusterId(0); YipliHelper.SetGameClusterId(1); break; case GameState.GAME_PAUSED: YipliHelper.SetGameClusterId(0); break; case GameState.GAME_OVER: YipliHelper.SetGameClusterId(0); break; default: break; } }
public void ActiveEndNote() { endNotes.SetActive(true); endCol.SetActive(true); YipliHelper.SetGameClusterId(0); }
//Pass here name of the game public static void SetYipliGameInfo(string strGameName) { switch (strGameName.ToLower()) { case "unleash": YipliHelper.SetGameClusterId(2); PlayerSession.Instance.intensityLevel = "medium"; break; case "trapped": YipliHelper.SetGameClusterId(1); PlayerSession.Instance.intensityLevel = "medium"; break; case "joyfuljumps": YipliHelper.SetGameClusterId(1); PlayerSession.Instance.intensityLevel = "medium"; break; case "eggcatcher": YipliHelper.SetGameClusterId(6); PlayerSession.Instance.intensityLevel = "low"; break; case "metrorush": YipliHelper.SetGameClusterId(6); PlayerSession.Instance.intensityLevel = "medium"; break; case "dancingball": YipliHelper.SetGameClusterId(6); PlayerSession.Instance.intensityLevel = "medium"; break; case "rollingball": YipliHelper.SetGameClusterId(6); PlayerSession.Instance.intensityLevel = "medium"; break; case "skater": YipliHelper.SetGameClusterId(3); PlayerSession.Instance.intensityLevel = "medium"; break; case "matbeats": YipliHelper.SetGameClusterId(5); PlayerSession.Instance.intensityLevel = "low"; break; default: YipliHelper.SetGameClusterId(0); PlayerSession.Instance.intensityLevel = ""; break; } }
private static void SetClusterIDtoZero() { try { Debug.Log("From game won menu : Set cluster id to : 0"); YipliHelper.SetGameClusterId(0); } catch (Exception e) { Debug.Log("Game won menu cluster id 0 exception."); Debug.Log("Exception : " + e.Message); } }
public static void SetYipliMultiplayerGameInfo(string strGameName) { switch (strGameName.ToLower()) { case "penguinpop": PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.minigameId = strGameName; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.minigameId = strGameName; YipliHelper.SetGameClusterId(4); PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.intensityLevel = "medium"; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.intensityLevel = "medium"; break; case "treewarrior": PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.minigameId = strGameName; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.minigameId = strGameName; YipliHelper.SetGameClusterId(2); PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.intensityLevel = "medium"; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.intensityLevel = "medium"; break; case "tugofwar": PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.minigameId = strGameName; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.minigameId = strGameName; YipliHelper.SetGameClusterId(4); PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.intensityLevel = "medium"; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.intensityLevel = "medium"; break; case "icehopper": PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.minigameId = strGameName; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.minigameId = strGameName; YipliHelper.SetGameClusterId(211); PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.intensityLevel = "medium"; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.intensityLevel = "medium"; break; case "fruitblast": PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.minigameId = strGameName; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.minigameId = strGameName; YipliHelper.SetGameClusterId(211); PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.intensityLevel = "medium"; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.intensityLevel = "medium"; break; case "boomerang": PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.minigameId = strGameName; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.minigameId = strGameName; YipliHelper.SetGameClusterId(211); PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.intensityLevel = "medium"; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.intensityLevel = "medium"; break; case "eggcatcher": PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.minigameId = strGameName; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.minigameId = strGameName; YipliHelper.SetGameClusterId(7); PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.intensityLevel = "low"; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.intensityLevel = "low"; break; case "pingpong": PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.minigameId = strGameName; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.minigameId = strGameName; YipliHelper.SetGameClusterId(7); PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.intensityLevel = "low"; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.intensityLevel = "low"; break; case "fishtrap": PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.minigameId = strGameName; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.minigameId = strGameName; YipliHelper.SetGameClusterId(7); PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.intensityLevel = "low"; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.intensityLevel = "low"; break; case "spacetower": PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.minigameId = strGameName; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.minigameId = strGameName; YipliHelper.SetGameClusterId(7); PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.intensityLevel = "medium"; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.intensityLevel = "medium"; break; case "beachball": PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.minigameId = strGameName; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.minigameId = strGameName; YipliHelper.SetGameClusterId(6); PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.intensityLevel = "medium"; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.intensityLevel = "medium"; break; case "dragonbreath": PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.minigameId = strGameName; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.minigameId = strGameName; YipliHelper.SetGameClusterId(6); PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerOneDetails.intensityLevel = "medium"; PlayerSession.Instance.currentYipliConfig.MP_GameStateManager.playerData.PlayerTwoDetails.intensityLevel = "medium"; break; default: PlayerSession.Instance.intensityLevel = ""; break; } }