void sameBtnClick(GameObject go) { if (currentProp == GamePropsId.Same) { sameBtn.State = PropsSprite.PropState.Default; Messenger.Broadcast(ConstValue.MSG_USE_PROP_CEL, GamePropsId.Same); ChangeCurrentProp(GamePropsId.None); } else { if (sameBtn.Num > 0) { ChangeCurrentProp(GamePropsId.Same); sameBtn.State = PropsSprite.PropState.Click; GUIPlaying.Instance().UseProp(GamePropsId.Same); } } }
public override void LoadDone(GUIManager gui) { Messenger.Broadcast(ConstValue.MSG_START_GAME); gui.GetFSM().ChangeState(GUIPlaying.Instance()); }