public string PrintInfo() { string s = "Platform: " + platformType.ToString() + " \n"; s += "Games: " + games.Count + "\n"; s += "Total Sales: " + totalSales + ", by country US: " + salesUS + " EU: " + salesEU + " JP: " + salesJP + " Other: " + salesOther + "\n"; s += "Most Sold Game: " + mostSoldGame.Name + " Sales: " + mostSoldGame.SalesTotal + "\n"; return(s); }
//draws or hides a platform in either left or right side of an image target public void DrawHidePlatform(bool draw, PLATFORM platformType, SIDE drawSide) { GameObject targetToDrawPlatform = ImageTargetManager.Instance.GetCurrentMainTarget(); if (cachedPlatforms.ContainsKey(platformType)) { cachedPlatforms[platformType].SetActive(draw); if (draw) { ParentPlatformRootToImageTarget(targetToDrawPlatform, cachedPlatforms[platformType], drawSide); } return; } if (!draw) { return; } for (int i = 0; i < platforms.Count; i++) { if (platformType == platforms[i].PlatformType) { cachedPlatforms.Add(platformType, platforms[i].DrawGames(15)); ParentPlatformRootToImageTarget(targetToDrawPlatform, cachedPlatforms[platformType], drawSide); return; } } Debug.LogError("Console " + consoleName + " Doesnt have platform: " + platformType.ToString()); }
public void RunABLoader() { PLATFORM = PlatForm.StandaloneWindows64; StartCoroutine(Initial_DownLoadAssetBundle(PLATFORM.ToString())); #region test code // StartCoroutine(LoadFromFile("a","Workshop Set")); //StartCoroutine(LoadFromFile("b", "Cube")); #endregion }
public void AddGame(PLATFORM gamePlatform, GameData gameData) { //can be optimized with a binary search if the enum is in ascending order :-) for (int i = 0; i < platforms.Count; i++) { if (gamePlatform == platforms[i].PlatformType) { platforms[i].AddGame(gameData); return; } } Debug.LogError("Console " + consoleName + " Doesnt have platform " + gamePlatform.ToString()); }