// 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(); }
public void SetUICanvasCallback(Action <GameObject> callback) { Debug.Log("SetUICanvasCallback load"); ComingSoonVisibleWrapper.SetUICanvasCallback = callback; ComingSoonVisibleWrapper.InitCanvasVRTK(); }
/// <summary> /// Called when the Room Scene is loaded /// </summary> public void OnRoomLoaded() { Debug.Log("OnRoomLoaded ComingSoon"); ComingSoonVisibleWrapper.Show(); }
/// <summary> /// Called when the Room Scene is unloaded /// </summary> public void OnRoomUnloaded() { Debug.Log("OnRoomUnLoaded ComingSoon"); ComingSoonVisibleWrapper.Hide(); }
public override void OnModUnload() { Debug.Log("ComingSoon Mod Unloaded"); ComingSoonVisibleWrapper.Clear(); }