mirror of
https://github.com/DerTyp7/fps-citybuild-unity.git
synced 2025-10-30 12:37:08 +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_ReflectionIntensity: 1
|
||||||
m_CustomReflection: {fileID: 0}
|
m_CustomReflection: {fileID: 0}
|
||||||
m_Sun: {fileID: 705507994}
|
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
|
m_UseRadianceAmbientProbe: 0
|
||||||
--- !u!157 &3
|
--- !u!157 &3
|
||||||
LightmapSettings:
|
LightmapSettings:
|
||||||
|
|||||||
@@ -19,6 +19,12 @@ public abstract class BuildingBlueprint : MonoBehaviour
|
|||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
|
GameObject[] blueprints = GameObject.FindGameObjectsWithTag("Blueprint");
|
||||||
|
foreach (GameObject blueprint in blueprints)
|
||||||
|
GameObject.Destroy(blueprint);
|
||||||
|
|
||||||
|
gameObject.tag = "Blueprint";
|
||||||
|
|
||||||
terrain = GameObject.FindGameObjectWithTag("Terrain");
|
terrain = GameObject.FindGameObjectWithTag("Terrain");
|
||||||
Init();
|
Init();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ TagManager:
|
|||||||
- Event
|
- Event
|
||||||
- Building
|
- Building
|
||||||
- Terrain
|
- Terrain
|
||||||
|
- Blueprint
|
||||||
layers:
|
layers:
|
||||||
- Default
|
- Default
|
||||||
- TransparentFX
|
- TransparentFX
|
||||||
|
|||||||
Reference in New Issue
Block a user