예제 #1
0
파일: Scene.cs 프로젝트: aksudya/ChaseGame
 public void AddPlayer(string id)
 {
     lock (list)
     {
         ScenePlayer p = new ScenePlayer();
         p.id = id;
         list.Add(id, p);
     }
 }
예제 #2
0
파일: Scene.cs 프로젝트: aksudya/ChaseGame
        public void UpdateInfo(string id, float x, float y, int score)
        {
            ScenePlayer p = list[id];

            if (p == null)
            {
                return;
            }

            p.x     = x;
            p.y     = y;
            p.score = score;
        }