public static OKClick GetInstance() { if (m_pInstance == null) { m_pInstance = new OKClick(); } return(m_pInstance); }
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()); } } }