Files
Fishing2/Assets/ThirdParty/LuxWater/Scripts/LuxWater_WaterVolumeTrigger.cs
2025-05-10 12:49:47 +08:00

27 lines
456 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace LuxWater {
public class LuxWater_WaterVolumeTrigger : MonoBehaviour {
[Space(6)]
[LuxWater_HelpBtn("h.cetbv2etlk23")]
public Camera cam;
public bool active = true;
void OnEnable () {
if (cam == null) {
var camera = GetComponent<Camera>();
if (camera != null) {
cam = camera;
}
else {
active = false;
}
}
}
}
}