예제 #1
0
 public static GUIPlaying Instance()
 {
     if (instance == null)
     {
         instance = new GUIPlaying();
     }
     return(instance);
 }
예제 #2
0
 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);
         }
     }
 }
예제 #3
0
 public override void LoadDone(GUIManager gui)
 {
     Messenger.Broadcast(ConstValue.MSG_START_GAME);
     gui.GetFSM().ChangeState(GUIPlaying.Instance());
 }