Ejemplo n.º 1
0
    /// <summary>
    /// Awake Function, preserve object and initialize basic propreties as soon as possible.
    /// </summary>
    private void Awake()
    {
        current = this;
        onAwaken();

        DontDestroyOnLoad(this.gameObject);
    }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
 public void setScene(SceneInit b)
 {
     this.scene = b;
 }
Ejemplo n.º 4
0
 public void setScene(SceneInit b)
 {
     this.scene = b;
 }