//Function called on initialize private void Awake() { //Making sure there's only one global reference to the Tile Selection Mode if (GlobalReference != null) { this.enabled = false; } else { GlobalReference = this; } }
public static TileSelectionHit PositionToTileSelectionHit(Vector3 position, TileSelectionMode tileSelectionMode) { if (tileSelectionMode == TileSelectionMode.Nothing) { return(default);