Beispiel #1
0
    //public Terrain terrain;


    private void Awake()
    {
        hexGrid       = hexGrid.GetComponent <HexGrid>();
        hexMapEditor  = hexMapEditor.GetComponent <HexMapEditor>();
        preSelectCell = new HexCell[2];
        preSelectCell.SetValue(null, 0);
        preSelectCell.SetValue(null, 1);
    }
Beispiel #2
0
 public void RespawnPlayInRandomCell()
 {
     gamePlayEditor.GetComponent <HexMapEditor>();
     while (!gamePlayEditor.CreateUnit(RandomCoordinate()))
     {
         Debug.Log("Random player set up!");
         hexMapCamera = hexMapCamera.GetComponent <HexMapCamera>();
         // hexMapCamera.MovingCameraToUnit();
     }
 }
Beispiel #3
0
 private void Awake()
 {
     hexGrid      = hexGrid.GetComponent <HexGrid>();
     hexMapEditor = hexMapEditor.GetComponent <HexMapEditor>();
 }