예제 #1
0
    public static void AddPlayer(GameObject player, string playerName, int playerID, int characterIndex)
    {
        PlayerInfo pi = new PlayerInfo();
        pi.player = player;
        pi.playerID = playerID;
        pi.playerName = playerName;
        pi.characterIndex = characterIndex;
        pi.Setup();

        players.Add(pi);
    }