Ejemplo n.º 1
0
    public static void StartPlaybackOfGhosts()
    {
        if (!fa.useGhosts)
        {
            return;
        }
        if (!FreshLevels.IsGameplayLevel(SceneManager.GetActiveScene().name))
        {
            playingBack = false;
            return;
        }

        playingBack     = true;
        loadedGhosts    = new List <List <GhostFrame> >();
        createdPuppets  = new List <Puppet>();
        loadedGhostData = false;
        createdGhosts   = false;

        if (DBFuncs.self != null)
        {
            //DBFuncs.self.DownloadGhost("thegamedesigner");
            DBFuncs.self.DownloadBestGhost();
        }


        //bool useYourLastAttempt = true;//Placeholder for the types of ghosts that should be loaded

        //if (useYourLastAttempt)
        //{
        //	List<GhostFrame> ghost = Fresh_Loading.LoadLocalGhostAttempt();
        //	if (ghost != null && ghost.Count > 0) { loadedGhosts.Add(ghost); }
        //}
    }
Ejemplo n.º 2
0
    public static void CleanStartRecording()
    {
        if (FreshLevels.IsGameplayLevel(SceneManager.GetActiveScene().name))
        {
            recording = true;
            frames    = new List <GhostFrame>();

            if (DBFuncs.self != null)
            {
                DBFuncs.self.UploadGhostAttempt("", true, false);
            }
        }
        else
        {
            recording = false;
            frames    = new List <GhostFrame>();
        }
    }