Beispiel #1
0
    void Start()
    {
        ShowErrors errorScript = GameObject.Find("Error Menu").GetComponent <ShowErrors>();

        if (PlayerPrefs.GetInt("currentLevel") == 0)
        {
            startText.text = "Play Game";
            PlayerPrefs.SetInt("currentLevel", 1);
        }
        else
        {
            errorScript.sendError(nullReferenceError);
            startText.text = "Load Game";
        }
    }
Beispiel #2
0
 public virtual void Visit(ShowErrors node)
 {
     VisitInternal(node.Limit);
 }
Beispiel #3
0
 public void Visit(ShowErrors node)
 {
 }