author Yannick Deubel (https://github.com/yandeu)
 *  copyright license https import { Texture } from 'three' ; import { SpriteSheet , SpriteSheetFrameOptions } from './spriteSheet' ; export class Button extends SpriteSheet { _onInputOver ( ) { this . setFrame ( this . overFrame ) ; } _onInputOut ( ) { this . setFrame ( this . outFrame ) ; } _onInputDown ( ) { this . setFrame ( this . downFrame ) ; } constructor ( texture , frameOptions , public overFrame , public outFrame , public downFrame ) { super ( texture , frameOptions ) ; this . setFrame ( outFrame ) ; } }