public override void Initialize() { Handler = Scene.FindComponentByType <GUIHandler>(); bounds = new Rectangle(-0.5f, -0.5f, 1f, 1f); UpdateWorldBounds(); InteractionState = GUIComponentState.None; dock = GUIDock.Centered; }
public ITexture Get(GUIComponentState state) { switch (state) { case GUIComponentState.Hovered: return(Hovered); case GUIComponentState.Clicked: return(Clicked); default: return(Default); } }