예제 #1
0
 public virtual void ReceivePacketPlayers(PacketPlayers pp)
 {
 }
예제 #2
0
파일: Level1.cs 프로젝트: Jannickvb/fugam
        public override void ReceivePacketPlayers(PacketPlayers pp)
        {
            player = new YourPlayer(gsm.FugamId,_level.TileMap,_level.CollisonMap);

            _otherPlayers = new Player[pp.playerIDs.Count-1];

            int opp = 0;
            for (int i = 0; i < pp.playerIDs.Count; i++)
            {
                if (!pp.playerIDs.ElementAt(i).Equals(gsm.FugamId))
                {
                    _otherPlayers[opp] = new Player(pp.playerIDs.ElementAt(i),_level.TileMap);
                    opp++;
                }
            }
        }