本文整理汇总了C#中Match.GetPlayerOrder方法的典型用法代码示例。如果您正苦于以下问题:C# Match.GetPlayerOrder方法的具体用法?C# Match.GetPlayerOrder怎么用?C# Match.GetPlayerOrder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Match
的用法示例。
在下文中一共展示了Match.GetPlayerOrder方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnSynchronizedStart
public void OnSynchronizedStart(Match m)
{
Debug.Log ("OnSychronizedStart");
// Setting the Random seed must be done on Unity's main thread
Loom.QueueOnMainThread (() => {
UnityEngine.Random.seed = (int)m.GetId ();
// Store the UXVCore.Match object so we can access it
// in other places.
GameManager.Instance.SetCurrentMatch (m);
GameManager.Instance.SetGameStarted (true);
// Notify GameManager that game has started. Check the player order
// for the player to see if we are considered to be local or remote opponent,
// The initial direction of the ball will be towards the local player.
Me me = UXV.GetSession().GetMySelf();
GameManager.Instance.StartGame((m.GetPlayerOrder(me) == 0 ? Player.LOCAL : Player.OPPONENT));
});
}