void Awake() { if (instance != null) { Debug.LogWarning("More than 1 instance of PlayerFov"); return; } instance = this; }
void Start() { gameManager = GameManager.instance; grid = gameManager.grid; floorTilemap = gameManager.floorTilemap; wallTilemap = gameManager.wallTilemap; playerFov = PlayerFov.instance; StartCoroutine(Position()); //Used for single turn by turn movement //controls.Main.Movement.performed += _ => Move(); }