private void Awake() { instance = this; hexData = new HexData(Game.instance.gameConfig.hexSize); chunks = new Dictionary <Vector3, Chunk>(); hexCalc = new HexCalc(); seed = Random.Range(1, 1000000); simplex = new Simplex(seed); }
void Start() { if (!Game.instance.gameConfig.DEBUG) { Destroy(gameObject); } hexCalc = new HexCalc(); hexData = new HexData(Game.instance.gameConfig.hexSize); textMesh = GetComponent <TextMesh>(); tile = GetComponentInParent <Tile>(); }