Placemnet system: patch
This commit is contained in:
parent
db9ecadd86
commit
05555ed075
File diff suppressed because it is too large
Load Diff
|
@ -72,6 +72,8 @@ public class CameraSlotClickDetect : MonoBehaviour
|
|||
}
|
||||
else
|
||||
{
|
||||
if (PrevHoveredSlot != null)
|
||||
PrevHoveredSlot.OnUnHovered();
|
||||
PrevHoveredSlot = null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@ public class TowerPlacementManager : MonoBehaviour
|
|||
private void OnShopSelected(TowerInfo info)
|
||||
{
|
||||
SelectedTowerInfo = info;
|
||||
SilhouettedObject = null;
|
||||
Destroy(SilhouettedObject);
|
||||
}
|
||||
|
||||
public void OnSlotClicked(SlotManager slot, GridManager grid, int x, int y)
|
||||
|
@ -127,9 +127,7 @@ public class TowerPlacementManager : MonoBehaviour
|
|||
|
||||
public void OnSlotUnHovered(SlotManager slot, GridManager grid, int x, int y)
|
||||
{
|
||||
//SilhouettedObject.SetActive(false);
|
||||
SilhouettedObject.transform.parent = null;
|
||||
SilhouettedObject.transform.position = Vector3.zero;
|
||||
Destroy(SilhouettedObject);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue