Beispiel #1
0
    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);
    }
Beispiel #2
0
 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>();
 }