Example #1
0
	public PathAbout()
	{
		if( instance != null )
		{
			Debug.LogError( "Trying to create two instances of singleton. Self destruction in 3..." );
			Destroy( this );
			return;
		}
		
		instance = this;
		
		title = "About Path";
		position = new Rect( ( Screen.width - 500.0f ) / 2.0f, ( Screen.height - 400.0f ) / 2.0f, 500.0f, 400.0f );
		minSize = new Vector2( 500.0f, 400.0f );
		maxSize = new Vector2( 500.0f, 400.0f );
	}
Example #2
0
    public PathAbout()
    {
        if (instance != null)
        {
            Debug.LogError("Trying to create two instances of singleton. Self destruction in 3...");
            Destroy(this);
            return;
        }

        instance = this;

        title    = "About Path";
        position = new Rect((Screen.width - 500.0f) / 2.0f, (Screen.height - 400.0f) / 2.0f, 500.0f, 400.0f);
        minSize  = new Vector2(500.0f, 400.0f);
        maxSize  = new Vector2(500.0f, 400.0f);
    }
Example #3
0
	public void OnDestroy()
	{
		instance = null;
	}
Example #4
0
 public void OnDestroy()
 {
     instance = null;
 }