refactor: Hex, cell

cell - delete
Hex - refactor, feature
State: stable

В Hex перенесен функционал из cell.
This commit is contained in:
2026-01-16 22:36:32 +03:00
parent 4ffdf964a7
commit e4e834d373
7 changed files with 104 additions and 82 deletions

View File

@@ -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);
}
}