public static AIMoveFromTrapState Instance() { if (instance == null) { instance = new AIMoveFromTrapState(); } return(instance); }
public override void onMessage(AIMoveController obj, StateMsg <AIMoveController> msg) { AIMsg type = (AIMsg)msg.type; switch (type) { case AIMsg.moveFromTrap: obj.getSM().changeState(AIMoveFromTrapState.Instance()); break; } }