fix hoop light, improve desert texture tiling performance
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
using NaughtyAttributes;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace EscapeRoomEngine.Desert.Runtime
|
||||
{
|
||||
public class DesertFloor : MonoBehaviour
|
||||
{
|
||||
[Required] public GameObject floor;
|
||||
[Required] public Transform floorParent;
|
||||
public Vector2 tileSize;
|
||||
public Vector2Int tileCount;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
for (var z = -tileCount.y; z <= tileCount.y; z++)
|
||||
{
|
||||
for (var x = -tileCount.x; x <= tileCount.x; x++)
|
||||
{
|
||||
var f = Instantiate(floor, floorParent);
|
||||
f.transform.localPosition = new Vector3(x * tileSize.x, 0, z * tileSize.y);
|
||||
f.isStatic = true;
|
||||
}
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
SceneVisibilityManager.instance.DisablePicking(floorParent.gameObject, true);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1d4fe6d2e6d5cac42aed108734e128f7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user