当前位置: 首页>>代码示例>>C#>>正文


C# MasterServerEvent.ToString方法代码示例

本文整理汇总了C#中MasterServerEvent.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# MasterServerEvent.ToString方法的具体用法?C# MasterServerEvent.ToString怎么用?C# MasterServerEvent.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MasterServerEvent的用法示例。


在下文中一共展示了MasterServerEvent.ToString方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnMasterServerEvent

 void OnMasterServerEvent(MasterServerEvent msEvent)
 {
     Debug.Log(msEvent.ToString());
 }
开发者ID:Bananenkiste,项目名称:CardGameCreator,代码行数:4,代码来源:NetworkManager.cs

示例2: OnMasterServerEvent

 void OnMasterServerEvent(MasterServerEvent msEvent)
 {
     // TODO: We should probably do stuff here someday
     Debug.Log("In OnMasterServerEvent: " + msEvent.ToString());
 }
开发者ID:Gamieon,项目名称:UniNetShooter,代码行数:5,代码来源:MasterServerDirector.cs

示例3: OnMasterServerEvent

 private void OnMasterServerEvent(MasterServerEvent mse)
 {
     log.Debug("Master Server Event: " + mse.ToString());
 }
开发者ID:hansmei,项目名称:Iluminati,代码行数:4,代码来源:NetworkManager.cs

示例4: OnMasterServerEvent

    // Message from MasterServer
    void OnMasterServerEvent(MasterServerEvent MSevent)
    {
        switch (MSevent)
        {
        case MasterServerEvent.HostListReceived:
            this.RefreshGamesList();
            break;

        case MasterServerEvent.RegistrationSucceeded:
            break;

        case MasterServerEvent.RegistrationFailedGameName:
            this.LogError(MSevent.ToString());
            break;

        case MasterServerEvent.RegistrationFailedGameType:
            this.LogError(MSevent.ToString());
            break;

        case MasterServerEvent.RegistrationFailedNoServer:
            this.LogError(MSevent.ToString());
            break;

        default:
            this.LogWarning(MSevent.ToString());
            break;
        }
    }
开发者ID:frizac-b,项目名称:gladiawar,代码行数:29,代码来源:GamesManager.cs

示例5: OnMasterServerEvent

 void OnMasterServerEvent(MasterServerEvent eventUru)
 {
     if (eventUru == MasterServerEvent.RegistrationSucceeded) {
         Debug.Log("The server has been registered");
             }
     else
         Debug.Log (eventUru.ToString ());
 }
开发者ID:Retro11231,项目名称:ESPN_Main,代码行数:8,代码来源:MovieQuad.cs

示例6: OnMasterServerEvent

 private void OnMasterServerEvent( MasterServerEvent _event )
 {
     DebugConsole.Log( "Master Server event " + _event.ToString() );
     //TODO: Implement cases found here http://docs.unity3d.com/Documentation/ScriptReference/MasterServerEvent.html LM 01/05/14
 }
开发者ID:marshl,项目名称:Leviathan2,代码行数:5,代码来源:MenuNetworking.cs

示例7: OnMasterServerEvent

 // message
 public void OnMasterServerEvent(MasterServerEvent mse)
 {
     if(mse == MasterServerEvent.RegistrationSucceeded)
     {
         Debug.Log ("Registered Server!");
     }
     else
     {
         Debug.Log (mse.ToString());
     }
 }
开发者ID:howardchlee,项目名称:UnityNetwork,代码行数:12,代码来源:NetworkControllerScript.cs


注:本文中的MasterServerEvent.ToString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。