mirror of
https://github.com/LazyDuchess/OpenTS2.git
synced 2025-01-22 08:11:47 -05:00
Merge branch 'master' into skia-text
This commit is contained in:
commit
9a3e97b405
3 changed files with 33 additions and 1 deletions
21
Assets/Scripts/OpenTS2/GameObjectExtensions.cs
Normal file
21
Assets/Scripts/OpenTS2/GameObjectExtensions.cs
Normal file
|
@ -0,0 +1,21 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
namespace OpenTS2
|
||||
{
|
||||
public static class GameObjectExtensions
|
||||
{
|
||||
public static void SetLayerHierarchy(this GameObject go, int layer)
|
||||
{
|
||||
var transforms = go.GetComponentsInChildren<Transform>();
|
||||
foreach(var transform in transforms)
|
||||
{
|
||||
transform.gameObject.layer = layer;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/Scripts/OpenTS2/GameObjectExtensions.cs.meta
generated
Normal file
11
Assets/Scripts/OpenTS2/GameObjectExtensions.cs.meta
generated
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e0edf7d99923e6e4e8328a1727f8271f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -19,7 +19,7 @@ namespace OpenTS2.Scenes
|
|||
public class NeighborhoodDecorations : AssetReferenceComponent
|
||||
{
|
||||
[GameProperty(false)]
|
||||
private static bool EnableBatching = true;
|
||||
private static bool EnableBatching = false;
|
||||
private Dictionary<string, Material> _roadMaterialLookup = new Dictionary<string, Material>();
|
||||
private Transform _decorationsParent;
|
||||
private Transform _roadsParent;
|
||||
|
|
Loading…
Reference in a new issue