Beispiel #1
0
        public GameObject DuplicateObject(GameObject gobject)
        {
            GameObject     res            = SyncData.Duplicate(gobject);
            DuplicateInfos duplicateInfos = new DuplicateInfos
            {
                srcObject = gobject,
                dstObject = res
            };

            MixerClient.Instance.SendEvent <DuplicateInfos>(MessageType.Duplicate, duplicateInfos);

            return(res);
        }
Beispiel #2
0
        public void SendDuplicate(DuplicateInfos duplicate)
        {
            NetCommand command = MixerUtils.BuildDuplicateCommand(root, duplicate);

            AddCommand(command);
        }