Exemplo n.º 1
0
    public BehaveEditor()
    {
        hideFlags = HideFlags.DontSave;

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

        if (this.Editor == null)
        {
            Debug.LogError("Failed to link with library implementation");
            DestroyImmediate(this);
            return;
        }

        m_Instance = this;
    }
Exemplo n.º 2
0
	public BehaveEditor ()
	{
		hideFlags = HideFlags.DontSave;
		
		if (m_Instance != null)
		{
			Debug.LogError ("Trying to create two instances of singleton. Self destruction in 3...");
			DestroyImmediate (this);
			return;
		}
		
		if (this.Editor == null)
		{
			Debug.LogError ("Failed to link with library implementation");
			DestroyImmediate (this);
			return;
		}
		
		m_Instance = this;
	}
Exemplo n.º 3
0
 public void OnDestroy()
 {
     Editor.OnDestroy();
     m_Instance = null;
 }
Exemplo n.º 4
0
	public void OnDestroy ()
	{
		Editor.OnDestroy();
		m_Instance = null;
	}