private void Awake() { if (LOD_Manager.instance == null) { LOD_Manager.instance = this; } else if (LOD_Manager.instance != this) { UnityEngine.Object.DestroyImmediate(base.gameObject); } }
private void InitLOD(LOD_Manager source) { this._destination.Bush.StippledMaterials = source.Bush.StippledMaterials; this._destination.SmallBush.StippledMaterials = source.SmallBush.StippledMaterials; this._destination.Cave.StippledMaterials = source.Cave.StippledMaterials; this._destination.CaveEntrance.StippledMaterials = source.CaveEntrance.StippledMaterials; this._destination.PickUps.StippledMaterials = source.PickUps.StippledMaterials; this._destination.Plant.StippledMaterials = source.Plant.StippledMaterials; this._destination.Rocks.StippledMaterials = source.Rocks.StippledMaterials; this._destination.SmallRocks.StippledMaterials = source.SmallRocks.StippledMaterials; this._destination.Trees.StippledMaterials = source.Trees.StippledMaterials; }
void Start() { LOD_Manager.ADDLOD_HL(transform); Destroy(this); }