/// <summary> /// Awake Function, preserve object and initialize basic propreties as soon as possible. /// </summary> private void Awake() { current = this; onAwaken(); DontDestroyOnLoad(this.gameObject); }
/// <summary> /// Awake Function, load the current scene through its data. /// </summary> void Awake() { // Load Scene SceneInit.current.onSceneLoaded = delegate { LoadSettings(); Destroy(SceneInit.current.gameObject); }; SceneInit.GlobalLoad(User, Terrain); }
public void setScene(SceneInit b) { this.scene = b; }
public void setScene(SceneInit b) { this.scene = b; }