Exemple #1
0
 public void WybierzRobota(int robot)
 {
     PlayerPrefs.SetInt("Robot", robot);
     UI_WyborRobotow.SetActive(false);
     UI_Levels.SetActive(true);
     SprLevele();
 }
Exemple #2
0
    public void Play()
    {
        if (PlayerPrefs.GetInt("Robot", 4) == 4)
        {
            UI_WyborRobotow.SetActive(true);
        }
        else
        {
            UI_Levels.SetActive(true);
        }

        UI_Start.SetActive(false);
        SprLevele();
    }
Exemple #3
0
    // Use this for initialization
    void Start()
    {
        //PlayerPrefs.DeleteAll();
        PlayerPrefs.SetInt("Level1", 1);


        if (PlayerPrefs.GetInt("Menu", 0) == 1)
        {
            UI_Levels.SetActive(true);
            UI_Start.SetActive(false);
        }
        else
        {
            UI_Levels.SetActive(false);
            UI_Start.SetActive(true);
        }
        SprLevele();
        PlayerPrefs.SetInt("Menu", 0);
    }