58 lines
927 B
C#
58 lines
927 B
C#
using UnityEngine;
|
|
|
|
public class UniStormEventSystem : MonoBehaviour
|
|
{
|
|
public UniStormWeatherSystem_C uniStormSystem;
|
|
|
|
public GameObject uniStormObject;
|
|
|
|
public int intToString;
|
|
|
|
public string variableName;
|
|
|
|
public string stringToAlter;
|
|
|
|
public int intToAlter;
|
|
|
|
public float floatToAlter;
|
|
|
|
public int eventType;
|
|
|
|
public string tagName;
|
|
|
|
public string code;
|
|
|
|
private void Start()
|
|
{
|
|
uniStormObject = GameObject.Find("UniStormSystemEditor");
|
|
uniStormSystem = uniStormObject.GetComponent<UniStormWeatherSystem_C>();
|
|
if (intToString == 0)
|
|
{
|
|
variableName = "weatherForecaster";
|
|
}
|
|
if (intToString == 1)
|
|
{
|
|
variableName = "temperature";
|
|
}
|
|
if (intToString == 2)
|
|
{
|
|
variableName = "minuteCounter";
|
|
}
|
|
if (intToString == 3)
|
|
{
|
|
variableName = "hourCounter";
|
|
}
|
|
if (intToString == 4)
|
|
{
|
|
variableName = "dayCounter";
|
|
}
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
if (intToString != 0)
|
|
{
|
|
}
|
|
}
|
|
}
|