Exemplo n.º 1
0
        void IDemoRPCService.Set(IAvatar avatar, DemoID demoID)
        {
            if (!_database.ContainsKey(demoID))
            {
                return;
            }

            CollisionDetection detection = _database[demoID];
            IAvatarWearable    wearable  = detection.GetComponent <IAvatarWearable>();

            avatar.SetWearable(wearable);

            detection.GetComponent <Collider>().enabled = false;
        }