コード例 #1
0
	public BehaveDebugWindow ()
	{
		hideFlags = HideFlags.DontSave;
		
		if (s_Instance != null)
		{
			Debug.LogError ("Trying to create two instances of singleton. Self destruction in 3...");
			Destroy (this);
			return;
		}
		
		DebugWindow.Init (this);
		
		s_Instance = this;
		
		title = "Behave debugger";
	}
コード例 #2
0
    public BehaveDebugWindow()
    {
        hideFlags = HideFlags.DontSave;

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

        DebugWindow.Init(this);

        s_Instance = this;

        title = "Behave debugger";
    }
コード例 #3
0
	public void OnDestroy ()
	{
		s_Instance = null;
		DebugWindow.Instance.OnDestroy();
	}
コード例 #4
0
 public void OnDestroy()
 {
     s_Instance = null;
     DebugWindow.Instance.OnDestroy();
 }