// Start is called before the first frame update void Start() { // set references eTiles = EnvironmentTiles_3d.instance; // generate the map GenerateMap(); eTiles.SetNeighborsForTiles(); }
/// <summary> /// Awake is called when the script instance is being loaded. /// </summary> void Awake() { // singleton pattern if (instance == null) { instance = this; // DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); } }