public static BrickFadeInState Instance() { if (instance == null) { instance = new BrickFadeInState(); } return(instance); }
public override void onMessage(Brick obj, StateMsg <Brick> msg) { BrickMsg type = (BrickMsg)msg.type; switch (type) { case BrickMsg.trapIsOver: obj.getSM().changeState(BrickFadeInState.Instance()); break; } }