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

        s_instance = this;
        DontDestroyOnLoad(this);
        Hide();
    }
示例#2
0
 /// <summary>
 /// Called when the Room Scene is loaded
 /// </summary>
 public void OnRoomLoaded()
 {
     Debug.Log("OnRoomLoaded SynthEssentials");
     EssentialVisibleWrapper.Show();
 }
示例#3
0
 /// <summary>
 /// Called when the Room Scene is unloaded
 /// </summary>
 public void OnRoomUnloaded()
 {
     Debug.Log("OnRoomUnLoaded SynthEssentials");
     EssentialVisibleWrapper.Hide();
 }
示例#4
0
 public override void OnModUnload()
 {
     Debug.Log("SynthEssentials Mod Unloaded");
     EssentialVisibleWrapper.Clear();
 }