27 lines
456 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|