LeopotamGroup.Gui.Common.GuiSystem.IsInstanceCreated C# (CSharp) Method

IsInstanceCreated() public static method

Save checking for singleton instance availability.
public static IsInstanceCreated ( ) : bool
return bool
        public static bool IsInstanceCreated()
        {
            return _instance != null;
        }

Usage Example

 protected virtual void OnDisable()
 {
     if (GuiSystem.IsInstanceCreated())
     {
         GuiSystem.Instance.RemoveEventReceiver(this);
     }
     _visualPanel = null;
 }