Exemple #1
0
 public static OKClick GetInstance()
 {
     if (m_pInstance == null)
     {
         m_pInstance = new OKClick();
     }
     return(m_pInstance);
 }
Exemple #2
0
 public override void Execute(SceneLobby e)
 {
     if (SelectData.networkType == NETWORK_TYPE.HOST)
     {
         if (e.networkManager.GetNumServerConnections() >= 2)
         {
             // 誰かと繋がった
             e.stateMachine.ChangeState(OKClick.GetInstance());
         }
     }
     if (SelectData.networkType == NETWORK_TYPE.CLIENT)
     {
         // サーバーと繋がったら
         if (e.networkManager.GetNumClientConnections() >= 1)
         {
             // 誰かと繋がった
             e.stateMachine.ChangeState(OKClick.GetInstance());
         }
     }
 }