public BehaveBrowser ()
	{
		hideFlags = HideFlags.DontSave;
		
		if (s_Instance != null)
		{
			Debug.LogError ("Trying to create two instances of singleton. Self destruction in 3...");
			Destroy (this);
			return;
		}
		
		Behave.Editor.Browser.Init (this);
		
		s_Instance = this;
		
		title = "Behave browser";
	}
Example #2
0
    public BehaveBrowser()
    {
        hideFlags = HideFlags.DontSave;

        if (s_Instance != null)
        {
            Debug.LogError("Trying to create two instances of singleton. Self destruction in 3...");
            Destroy(this);
            return;
        }

        Behave.Editor.Browser.Init(this);

        s_Instance = this;

        title = "Behave browser";
    }
	public void OnDestroy ()
	{
		s_Instance = null;
		Behave.Editor.Browser.Instance.OnDestroy ();
	}
Example #4
0
 public void OnDestroy()
 {
     s_Instance = null;
     Behave.Editor.Browser.Instance.OnDestroy();
 }