private void Place(int cell)
 {
     if (Grid.IsValidBuildingCell(cell))
     {
         if (SandboxToolParameterMenu.instance.settings.Entity.PrefabID() == (Tag)MinionConfig.ID)
         {
             SpawnMinion();
         }
         else if ((Object)SandboxToolParameterMenu.instance.settings.Entity.GetComponent <Building>() != (Object)null)
         {
             BuildingDef def = SandboxToolParameterMenu.instance.settings.Entity.GetComponent <Building>().Def;
             def.Build(cell, Orientation.Neutral, null, def.DefaultElements(), 298.15f, true, -1f);
         }
         else
         {
             GameObject gameObject = GameUtil.KInstantiate(Assets.GetPrefab(SandboxToolParameterMenu.instance.settings.Entity.PrefabTag), Grid.CellToPosCBC(currentCell, Grid.SceneLayer.Creatures), Grid.SceneLayer.Creatures, null, 0);
             gameObject.SetActive(true);
         }
         UISounds.PlaySound(UISounds.Sound.ClickObject);
     }
 }