add project files

This commit is contained in:
Boris Nikolaev
2026-08-14 01:58:31 +03:00
parent 9134cad79b
commit 5f1e94b653
4399 changed files with 12286903 additions and 0 deletions
@@ -0,0 +1,26 @@
using UnityEngine;
namespace Ambiance
{
public class AmbianceHide : AmbianceSpecialBase
{
[SerializeField]
private string id;
public override void OnStart()
{
base.OnStart();
AmbianceController.Instance.OnAmbianceChange.AddListener(Apply);
}
public override void Apply()
{
Renderer renderer = GetComponent<Renderer>();
if (renderer == null || AmbianceController.Instance.CurrentAmbianceToUse == null)
{
return;
}
renderer.enabled = !AmbianceController.Instance.CurrentAmbianceToUse.hiddenElementsIds.Contains(id);
}
}
}