refactor: Hex, cell
cell - delete Hex - refactor, feature State: stable В Hex перенесен функционал из cell.
This commit is contained in:
@@ -62,8 +62,8 @@ public class gridGen : MonoBehaviour
|
||||
{
|
||||
GameObject hex = Instantiate(hexPrefab);
|
||||
hex.transform.Translate(new Vector3(x, y, 0));
|
||||
hex.GetComponent<cell>().noiseValue = noise.getNoise((float) nowX/this.x, (float) nowY /this.x, Mathf.Max(this.x, this.y));
|
||||
hex.GetComponent<cell>().Init();
|
||||
|
||||
hex.GetComponent<Hex>().InitializeHex(new Vector2Int(this.nowX, this.nowY), noise.getNoise((float)nowX / this.x, (float)nowY / this.x, Mathf.Max(this.x, this.y)), noise.seed);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user