Optimize the lorax out for now

This commit is contained in:
Jens Pitkänen 2020-04-20 03:49:50 +03:00
parent c7667eca42
commit 7b0468aa5c
5 changed files with 1 additions and 52 deletions

View File

@ -9,7 +9,6 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 6146008682649884421}
- component: {fileID: -649907758206895049}
m_Layer: 0
m_Name: DeadTree
m_TagString: Untagged
@ -32,18 +31,6 @@ Transform:
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &-649907758206895049
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3828898392337730748}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 049498ca6910d2d4d915c7a47791a4dc, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!136 &3559412524811406020
CapsuleCollider:
m_ObjectHideFlags: 0

View File

@ -9,7 +9,6 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 3251905180775543372}
- component: {fileID: 694582686422640730}
m_Layer: 0
m_Name: Foliage
m_TagString: Untagged
@ -32,18 +31,6 @@ Transform:
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &694582686422640730
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3986516409580175158}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 049498ca6910d2d4d915c7a47791a4dc, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &9014123283363007162
PrefabInstance:
m_ObjectHideFlags: 0

View File

@ -9,7 +9,6 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 1416060363081332451}
- component: {fileID: 4864167641988283359}
m_Layer: 0
m_Name: LefaTree
m_TagString: Untagged
@ -32,18 +31,6 @@ Transform:
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &4864167641988283359
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6700814859666117554}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 049498ca6910d2d4d915c7a47791a4dc, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &5323890504769059336
PrefabInstance:
m_ObjectHideFlags: 0

View File

@ -9,7 +9,6 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 5327936629455661424}
- component: {fileID: -4627941334550427029}
m_Layer: 0
m_Name: PineTree
m_TagString: Untagged
@ -32,18 +31,6 @@ Transform:
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &-4627941334550427029
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2469457951508719009}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 049498ca6910d2d4d915c7a47791a4dc, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &2749315332302543984
PrefabInstance:
m_ObjectHideFlags: 0

View File

@ -60,6 +60,7 @@ public class Lorax : MonoBehaviour {
if (Chunks[CurrentChunk] == null) {
Chunks[CurrentChunk] = new GameObject("Chunk " + CurrentChunk);
Chunks[CurrentChunk].transform.parent = transform;
Chunks[CurrentChunk].SetActive(false);
}
if (Random.value > TreeChance) {
continue;