This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.InputSystem; | |
using UnityEngine.Events; | |
public class CursorRaycaster : MonoBehaviour | |
{ | |
public UnityEvent onClickNothing; | |
private const float DragThreshold = 1.0f; | |
private Ray ray; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public static class SystemsLoader | |
{ | |
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] | |
public static void Execute() | |
{ | |
var systems = Resources.Load("Systems"); | |
if (!systems) |