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


C# PlayerManager.Setup方法代码示例

本文整理汇总了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);
    }
开发者ID:ScopatGames,项目名称:Spectrum,代码行数:14,代码来源:GameManager.cs

示例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);
    }
开发者ID:BoarK,项目名称:BewareWolf,代码行数:20,代码来源:Core.cs

示例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);
	}
开发者ID:xenouk,项目名称:Arena,代码行数:19,代码来源:GameManager.cs


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