mirror of
https://github.com/DerTyp7/fps-citybuild-unity.git
synced 2025-10-29 12:22:07 +01:00
Bug Fix: Blueprint overlapping
All blueprints now get deleted before when a new one gets created.
This commit is contained in:
@@ -38,7 +38,7 @@ RenderSettings:
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 705507994}
|
||||
m_IndirectSpecularColor: {r: 0.062805, g: 0.05929555, b: 0.058502227, a: 1}
|
||||
m_IndirectSpecularColor: {r: 0.2277222, g: 0.2251251, b: 0.2237271, a: 1}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
|
||||
@@ -19,6 +19,12 @@ public abstract class BuildingBlueprint : MonoBehaviour
|
||||
|
||||
private void Start()
|
||||
{
|
||||
GameObject[] blueprints = GameObject.FindGameObjectsWithTag("Blueprint");
|
||||
foreach (GameObject blueprint in blueprints)
|
||||
GameObject.Destroy(blueprint);
|
||||
|
||||
gameObject.tag = "Blueprint";
|
||||
|
||||
terrain = GameObject.FindGameObjectWithTag("Terrain");
|
||||
Init();
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ TagManager:
|
||||
- Event
|
||||
- Building
|
||||
- Terrain
|
||||
- Blueprint
|
||||
layers:
|
||||
- Default
|
||||
- TransparentFX
|
||||
|
||||
Reference in New Issue
Block a user