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(); }
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(); }