Beispiel #1
0
 void Awake()
 {
     if (control == null)
     {
         DontDestroyOnLoad(gameObject);
         control = this;
     }
     else if (control != null)
     {
         Destroy(gameObject);
     }
 }
    public void Load()
    {
        load = GameObject.FindObjectOfType <EH_SaveData>();

        load.Load();
    }