Exemplo n.º 1
0
        void Update()
        {
            if (Input.GetKey("left ctrl"))
            {
                LinkedListNode <MoviePlayer> elem = MoviePlayers.First;
                LinkedListNode <MoviePlayer> next = null;
                while (elem != null)
                {
                    next = elem.Next;
                    MoviePlayer player = elem.Value;
                    if (player == null)
                    {
                        MoviePlayers.Remove(elem);
                    }
                    else
                    {
                        if (!player.Loop && !player.inWorld)
                        {
                            player.StopVideo();
                        }
                        else
                        {
                            Logger.LogInfo($"not skipping, Loop: {player.Loop}, inWorld: {player.inWorld}");
                        }
                    }
                    elem = next;
                }

                // if (!skippedSplash && GameManager.instance.Hud.State == HudState.Start && UnitySceneManager.GetActiveScene().name == "Global Module") {
                //     UnitySceneManager.LoadScene("Start Menu");
                //     skippedSplash = true;
                // }
            }
        }