TestWindow.DRAW C# (CSharp) Method

DRAW() private method

private DRAW ( ) : void
return void
    private void DRAW()
    {
        // Check if bitmap resource data - in the dll package is valid

        if (kResource.GetBinaryTexture (kResource.CLOSE, 36, 28) != null) {

            GUI.DrawTexture (new Rect (50, 50, 23, 23), kResource.GetBinaryTexture (kResource.CLOSE, 36, 28));
            GUI.DrawTexture (new Rect (75, 50, 23, 23), kResource.GetBinaryTexture (kResource.OPEN, 36, 28));

        } else {

            // if the references to the assets not available - set kResource to null. To refresh resource data.
            // Happens : on editor state change ( from playmode in editormode )

            kResource.Dispose ();
        }
    }