Beispiel #1
0
 public void PlaceInstalledObject(InstalledObjectType installedObjectType, Tile tile)
 {
     if (installedObjectPrototypes.TryGetValue(installedObjectType, out var installedObject))
     {
         InstalledObject obj = InstalledObject.PlacePrototype(installedObject, tile);
         if (obj != null)
         {
             cbInstalledObjectPlaced?.Invoke(obj);
         }
     }
     else
     {
         Debug.LogError("World - installedObjectPrototypes does not contain the prototype Installed Object" +
                        " for " + installedObjectType);
     }
 }