示例#1
0
        public void ShowRoom(float sizeCell, AbstractItem objectAbstractItemBehaviour = null)
        {
            WorldPosition = new Vector2(GridX * sizeCell, GridY * sizeCell);
            roomRadius    = sizeCell / 2;

            View = GameObject.Instantiate
                   (
                PrefabsManager.LoadPrefab(PrefabsManager.PrefabsList.DefaultRoom)
                   ).GetComponent <RoomView>();

            View.InitView(WorldPosition, this);

            if (objectAbstractItemBehaviour != null)
            {
                AbstractItem = objectAbstractItemBehaviour;
                objectAbstractItemBehaviour.Show(this);
            }
        }