public void OnMovePosition(string name, TransformMPO transform) { if (!name.Equals(self.Name)) { players[name].Transform = transform; Debug.Log($"{name}さんが移動しました"); } }
public async Task MoveTransformAsync(TransformMPO transform) { self.Transform = transform; this.Broadcast(room).OnMovePosition(self.Name, self.Transform); await Task.CompletedTask; }