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

            s_instance = this;
            DontDestroyOnLoad(this);
        }
Esempio n. 2
0
 public void SetUICanvasCallback(Action <GameObject> callback)
 {
     CanvasWrap.SetUICanvasCallback = callback;
     CanvasWrap.InitCanvasVRTK();
 }
Esempio n. 3
0
 public void OnRoomUnloaded()
 {
     CanvasWrap.HideMe();
 }
Esempio n. 4
0
 public void OnRoomLoaded()
 {
     CanvasWrap.ShowMe();
 }
Esempio n. 5
0
 public override void OnModUnload()
 {
     CanvasWrap.DestroyMe();
 }
Esempio n. 6
0
        public override void OnModLoaded()
        {
            var canvasWrapper = ModAssets.Instantiate <GameObject>("CanvasWrap");

            CanvasWrap.HideMe();
        }