private static EventTriggerGameTriggerInfo GetInstance() { GameObject gameObject = GameObject.Find(typeof(EventTriggerGameTriggerInfo).Name); if (gameObject == null) { gameObject = new GameObject(typeof(EventTriggerGameTriggerInfo).Name, new Type[] { typeof(EventTriggerGameTriggerInfo) }); } EventTriggerGameTriggerInfo component = gameObject.GetComponent <EventTriggerGameTriggerInfo>(); UnityEngine.Object.DontDestroyOnLoad(gameObject); UnityEngine.Object.DontDestroyOnLoad(component); return(component); }
public void Reset() { EventTriggerGameTriggerInfo._Instance = EventTriggerGameTriggerInfo.GetInstance(); }
public void Start() { EventTriggerGameTriggerInfo.GetInstance(); }