Пример #1
0
 void OnGUI()
 {
     if (GUI.Button(new Rect(10, 150, 100, 30), "Load Game"))
     {
         SaveWorld my_save = this.GetComponent <SaveWorld>();
         my_save.load();
     }
 }
Пример #2
0
    public void loadGame()
    {
        SaveWorld my_save = this.GetComponent <SaveWorld>();

        my_save.load();
    }