Exemplo n.º 1
0
 void Awake()
 {
     HexMetrics.noiseSource = noiseSource;
     HexMetrics.InitializeHashGrid(seed);
     HexMetrics.colors = colors;
     CreateMap(cellCountX, cellCountZ);
 }
Exemplo n.º 2
0
 private void Awake()
 {
     HexMetrics.noiseSource = noiseSource;
     HexMetrics.InitializeHashGrid(seed);
     HexUnit.unitPrefab = unitPrefab;
     cellShaderData     = gameObject.AddComponent <HexCellShaderData>();
     CreateMap(cellCountX, cellCountZ);
 }
Exemplo n.º 3
0
 private void OnEnable()
 {
     if (!HexMetrics.noiseSource)
     {
         HexMetrics.noiseSource = noiseSource;
         HexMetrics.InitializeHashGrid(seed);
         HexUnit.unitPrefab = unitPrefab;
     }
 }
Exemplo n.º 4
0
 void OnEnable()
 {
     if (!noiseSource)
     {
         HexMetrics.noiseSource = noiseSource;
         HexMetrics.InitializeHashGrid(seed);
         HexMetrics.colors = colors;
     }
 }
Exemplo n.º 5
0
 private void OnEnable()
 {
     if (!HexMetrics.noiseSource)
     {
         HexMetrics.noiseSource = noiseSource;
         HexMetrics.InitializeHashGrid(seed);
         HexUnit.unitPrefab  = unitPrefab;
         HexMetrics.wrapSize = wrapping ? cellCountX : 0;
         ResetVisibility();
     }
 }