Files
UltimateFishing/Assets/Scripts/Assembly-UnityScript/WeatherZoneExample_JS.cs
2026-02-21 16:45:37 +08:00

39 lines
640 B
C#

using System;
using UnityEngine;
[Serializable]
public class WeatherZoneExample_JS : MonoBehaviour
{
public GameObject uniStormSystem;
public int zoneWeather;
public float shieldArea;
public WeatherZoneExample_JS()
{
shieldArea = 5f;
}
public virtual void Start()
{
uniStormSystem = GameObject.Find("UniStormSystemEditor");
}
public virtual void Update()
{
}
public virtual void OnTriggerEnter(Collider other)
{
if (other.tag == "Player")
{
((UniStormWeatherSystem_JS)uniStormSystem.GetComponent(typeof(UniStormWeatherSystem_JS))).weatherForecaster = zoneWeather;
}
}
public virtual void Main()
{
}
}