本文整理汇总了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());
}
示例2: OnMasterServerEvent
void OnMasterServerEvent(MasterServerEvent msEvent)
{
// TODO: We should probably do stuff here someday
Debug.Log("In OnMasterServerEvent: " + msEvent.ToString());
}
示例3: OnMasterServerEvent
private void OnMasterServerEvent(MasterServerEvent mse)
{
log.Debug("Master Server Event: " + mse.ToString());
}
示例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;
}
}
示例5: OnMasterServerEvent
void OnMasterServerEvent(MasterServerEvent eventUru)
{
if (eventUru == MasterServerEvent.RegistrationSucceeded) {
Debug.Log("The server has been registered");
}
else
Debug.Log (eventUru.ToString ());
}
示例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
}
示例7: OnMasterServerEvent
// message
public void OnMasterServerEvent(MasterServerEvent mse)
{
if(mse == MasterServerEvent.RegistrationSucceeded)
{
Debug.Log ("Registered Server!");
}
else
{
Debug.Log (mse.ToString());
}
}