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