示例#1
0
        void SwitchElement(ElementUI eUI)
        {
            switch (eUI.Type)
            {
            case ElementEnum.Floor:
                FloorUI fUI = eUI as FloorUI;
                AR.Activate(true, floorPrefab, fUI.FloorTexture);
                break;

            case ElementEnum.Furniture:
                FurnitureUI furUI = eUI as FurnitureUI;
                furniturePrefab = furUI.Model;
                AR.Activate(true, furniturePrefab, furUI.Model);
                break;
            }
        }