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

            s_instance = this;
            DontDestroyOnLoad(this);
            button.onClick.AddListener(DeleteSong);
        }
 public void SetUICanvasCallback(Action<GameObject> callback)
 {
     DeleteButton.SetUICanvasCallback = callback;
     DeleteButton.InitCanvasVRTK();
 }
 public void OnRoomUnloaded()
 {
     DeleteButton.HideMe();
 }
 public void OnRoomLoaded()
 {
     DeleteButton.ShowMe();
 }
 public override void OnModUnload()
 {
     DeleteButton.DestroyMe();
     log("DeleteMod unloaded");
 }