Ejemplo n.º 1
0
        public void Refresh()
        {
            var tapes = new List <GameObject>();

            for (var i = 0; i < contentDestination.childCount; i++)
            {
                tapes.Add(contentDestination.GetChild(i).gameObject);
            }
            foreach (var tape in tapes)
            {
                Destroy(tape);
            }

            tapeSearchBar.Searchables.Clear();

            var games = gameIdGroup.GetAssets <GameID>();

            foreach (var game in games)
            {
                if (game.GetPlayCount() == 0)
                {
                    continue;
                }

                var tape = Instantiate(contentTemplate, contentDestination);
                tape.Initialize(game);

                tapeSearchBar.Searchables.Add(tape);
                sheet.RegisterGameTape(tape);
            }

            StartCoroutine(RefreshSheetRoutine(games.First()));
        }
        private void CallLockAllGameCommand()
        {
            var games = gameGroup.GetAssets <GameID>();

            foreach (var game in games)
            {
                var cheatAccessible = game as ICheatAccessible;

                var playCounts = (int[])cheatAccessible.objects[0];
                for (var i = 0; i < playCounts.Length; i++)
                {
                    playCounts[i] = 0;
                }
                var winCounts = (int[])cheatAccessible.objects[1];
                for (var i = 0; i < winCounts.Length; i++)
                {
                    winCounts[i] = 0;
                }
            }
            onInterfaceRefreshAtomEvent.Raise();
        }
        public void Generate()
        {
            var games = gameGroup.GetAssets <GameID>().ToList();

            while (games.Count != 30)
            {
                var randomIndex = Random.Range(0, games.Count);
                games.RemoveAt(randomIndex);
            }

            bossSequence.SetSequence(games.ToArray());
        }
Ejemplo n.º 4
0
        void Awake()
        {
            foreach (GameID game in gameIds.GetAssets <GameID>())
            {
                if (game.GetPlayCount() <= 0)
                {
                    continue;
                }

                var microScript = Instantiate(interactibleIcon, content).GetComponent <MiniJeuChoixLibre>();
                microScript.thisGame = game;
                microScript.affMini  = affMini;
            }
        }
Ejemplo n.º 5
0
 private void Awake() => games = gameIds.GetAssets <GameID>().ToArray();
Ejemplo n.º 6
0
 void Start() => gameIds = gameIdsGroup.GetAssets <GameID>().ToArray();