예제 #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);
    }
예제 #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>();
 }