void SetSelectedSlot(BuildingUIInfo slotinfo)
 {
     if (SetCurrentSelectedSlotInfoEvent != null)
     {
         SetCurrentSelectedSlotInfoEvent(slotinfo);
     }
 }
    public Building3DInfo GetSelectedSlotByInstantiate(PoolSystemManager pool, Vector3 Position)
    {
        Building3DInfo info = null;

        if (currentSelectedSlot != null)
        {
            info = currentSelectedSlot.InstantiatePrefab(pool, Position);
            currentSelectedSlot = null;
        }
        return(info);
    }
 void SetSelectedBuildingInfo(BuildingUIInfo info)
 {
     currentSelectedSlot = info;
 }