Пример #1
0
 public void OnMovePosition(string name, TransformMPO transform)
 {
     if (!name.Equals(self.Name))
     {
         players[name].Transform = transform;
         Debug.Log($"{name}さんが移動しました");
     }
 }
Пример #2
0
        public async Task MoveTransformAsync(TransformMPO transform)
        {
            self.Transform = transform;

            this.Broadcast(room).OnMovePosition(self.Name, self.Transform);

            await Task.CompletedTask;
        }