Esempio n. 1
0
 public void SetGameObjectPrefab(UnityObject selectedPrefab)
 {
     unityObject        = selectedPrefab;
     map.zoneSizeX      = (int)unityObject.SizeInTiles().x;
     map.zoneSizeY      = (int)unityObject.SizeInTiles().z;
     map.zoneBrightness = Constants.INACTIVE_TILE;
     currectObjectType  = selectedPrefab.Type();
     SetObjectPlacementMode();
 }
Esempio n. 2
0
 private bool ObjectIsAvailable()
 {
     return(MapConfig.mapConfig.IsContained(unityObject.Type()));
 }