本文整理汇总了C#中PlayerManager.getPlayerName方法的典型用法代码示例。如果您正苦于以下问题:C# PlayerManager.getPlayerName方法的具体用法?C# PlayerManager.getPlayerName怎么用?C# PlayerManager.getPlayerName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PlayerManager
的用法示例。
在下文中一共展示了PlayerManager.getPlayerName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: startWithManager
void startWithManager()
{
playercount = GameObject.FindGameObjectsWithTag("Player").Length;
allNames = new string[playercount];
allScores = new int[playercount];
print ("I think universeN() = "+universeN() );
manager = GameObject.Find("Character" + manager.universeNumber).GetComponent<PlayerManager>();
if (manager.activeCharN == null) manager.activeCharN = "tester";
Debug.Log("Hud on" + manager.activeCharN);
manager.InitialiseStats();
StartScore();
iTween.CameraFadeAdd();
iTween.CameraFadeFrom(1.0f, 2.0f);
ToastWrapper("SURVIVE THE ENEMY ONSLAUGHT");
if (PlayerManager.activeChar == "china") crossTex = (Texture2D)Resources.Load("hud/crossChi");
else if (PlayerManager.activeChar == "usa") crossTex = (Texture2D)Resources.Load("hud/crossUSA");
else crossTex = (Texture2D)Resources.Load("hud/crossRus");
wepBox1 = (Texture2D) Resources.Load ("hud/wepBox1Off");
wepBox2 = (Texture2D) Resources.Load ("hud/wepBox2Off");
wepBox3 = (Texture2D) Resources.Load ("hud/wepBox3Off");
flag = (Texture2D) Resources.Load ("menu/flags/"+manager.getFlag());
charName = MP.playerName;
if (Network.isClient)
{
setWeapon(1);
}
startHP = manager.getStartHP();
startEnergy = manager.getStartEnergy();
bankSize = manager.getBankSize();
lives = manager.getLives();
charName = manager.getPlayerName();
}