示例#1
0
 public static BrickFadeInState Instance()
 {
     if (instance == null)
     {
         instance = new BrickFadeInState();
     }
     return(instance);
 }
示例#2
0
    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;
        }
    }