// Use this for initialization
    void Awake()
    {
        if (s_instance != null)
        {
            Destroy(this);
        }

        s_instance = this;
        DontDestroyOnLoad(this);
        // canvas.AddComponent<VRTK_UICanvas>();
        button.onClick.AddListener(TogglePlay);
        Hide();
    }
Esempio n. 2
0
 public void SetUICanvasCallback(Action <GameObject> callback)
 {
     Debug.Log("SetUICanvasCallback load");
     ComingSoonVisibleWrapper.SetUICanvasCallback = callback;
     ComingSoonVisibleWrapper.InitCanvasVRTK();
 }
Esempio n. 3
0
 /// <summary>
 /// Called when the Room Scene is loaded
 /// </summary>
 public void OnRoomLoaded()
 {
     Debug.Log("OnRoomLoaded ComingSoon");
     ComingSoonVisibleWrapper.Show();
 }
Esempio n. 4
0
 /// <summary>
 /// Called when the Room Scene is unloaded
 /// </summary>
 public void OnRoomUnloaded()
 {
     Debug.Log("OnRoomUnLoaded ComingSoon");
     ComingSoonVisibleWrapper.Hide();
 }
Esempio n. 5
0
 public override void OnModUnload()
 {
     Debug.Log("ComingSoon Mod Unloaded");
     ComingSoonVisibleWrapper.Clear();
 }