本文整理汇总了C#中PlayerManager.Setup方法的典型用法代码示例。如果您正苦于以下问题:C# PlayerManager.Setup方法的具体用法?C# PlayerManager.Setup怎么用?C# PlayerManager.Setup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PlayerManager
的用法示例。
在下文中一共展示了PlayerManager.Setup方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddPlayer
//STATIC METHODS
//------------------------------------------------
public static void AddPlayer(GameObject player, int playerNum, int playerColorIndex, string name, int randomTerrainSeed)
{
PlayerManager tempPlayer = new PlayerManager();
tempPlayer.instance = player;
tempPlayer.playerNumber = playerNum;
tempPlayer.playerColorIndex = playerColorIndex;
tempPlayer.playerName = name;
tempPlayer.randomTerrainSeed = randomTerrainSeed;
tempPlayer.Setup();
playerManagers.Add(tempPlayer);
}
示例2: Core
public Core()
{
instance = this;
AddChild(pageContainer = new FContainer());
AddChild(topEffectManager = new EffectManager(true));
audioManager = new AudioManager();
FXPlayer.manager = audioManager.fxManager;
MusicPlayer.manager = audioManager.musicManager;
FXPlayer.Preload();
playerManager = new PlayerManager();
playerManager.Setup();
ShowPage(new PlayerSelectPage());
ListenForUpdate(Update);
}
示例3: AddPlayer
/// <summary>
/// Add a tank from the lobby hook
/// </summary>
/// <param name="tank">The actual GameObject instantiated by the lobby, which is a NetworkBehaviour</param>
/// <param name="playerNum">The number of the player (based on their slot position in the lobby)</param>
/// <param name="c">The color of the player, choosen in the lobby</param>
/// <param name="name">The name of the Player, choosen in the lobby</param>
/// <param name="localID">The localID. e.g. if 2 player are on the same machine this will be 1 & 2</param>
static public void AddPlayer(GameObject player, int playerNum, Color c, string name, int localID) {
PlayerManager tmp = new PlayerManager ();
tmp.m_Instance = player;
tmp.m_PlayerNumber = playerNum;
tmp.m_PlayerColor = c;
tmp.m_PlayerName = name;
tmp.m_LocalPlayerID = localID;
tmp.Setup ();
m_Players.Add (tmp);
}