public void SaveEggState()
    {
        if (SceneManager.GetActiveScene().name == marketName || SceneManager.GetActiveScene().name == marketPuzName)
        {
            MarketSaveLoadManager.SaveMarketEggs(this);
        }
        if (SceneManager.GetActiveScene().name == parkName || SceneManager.GetActiveScene().name == parkPuzName)
        {
            ParkSaveLoadManager.SaveParkEggs(this);
        }
        if (SceneManager.GetActiveScene().name == beachName || SceneManager.GetActiveScene().name == beachPuzName)
        {
            BeachSaveLoadManager.SaveBeachEggs(this);
        }

        //Debug.Log("Save Variables");
    }
Beispiel #2
0
    public void SaveEggState()
    {
        if (SceneManager.GetActiveScene().name == "Market" || SceneManager.GetActiveScene().name == "WeightPuzzle")
        {
            MarketSaveLoadManager.SaveMarketEggs(this);
        }

        if (SceneManager.GetActiveScene().name == "Park" || SceneManager.GetActiveScene().name == "KitePuzzle")
        {
            ParkSaveLoadManager.SaveParkEggs(this);
        }

        if (SceneManager.GetActiveScene().name == "Beach" || SceneManager.GetActiveScene().name == "ClamPuzzle")
        {
            BeachSaveLoadManager.SaveBeachEggs(this);
        }

        Debug.Log("Save Variables");
    }