Ejemplo n.º 1
0
    void Awake()
    {
        // Set static self reference
        TeleportalProject.Shared = this;

        // Load Teleportal scene
        SceneManager.LoadScene("Teleportal", LoadSceneMode.Additive);
    }
Ejemplo n.º 2
0
 void OnGUI()
 {
     // If in Edit mode
     if (!Application.isPlaying)
     {
         // Set static self reference
         TeleportalProject.Shared = this;
     }
 }
Ejemplo n.º 3
0
 // TP //
 void Awake()
 {
     // Set static self reference
     TeleportalProject.Shared = this;
 }