public override void Initialize() { NormalTexture = new TextureWrapper(State, NormalPath); HighlightedTexture = new TextureWrapper(State, HighlightedPath); CurrentTexture = NormalTexture; base.Initialize(); }
void HandleUserInput() { if (IsPressed()) { doClickedProcess(); } else if (IsHovered()) { CurrentTexture = HighlightedTexture; doHoveredProcess(); } else { CurrentTexture = NormalTexture; } }