Ejemplo n.º 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);
    }
Ejemplo n.º 2
0
 public void RespawnPlayInRandomCell()
 {
     gamePlayEditor.GetComponent <HexMapEditor>();
     while (!gamePlayEditor.CreateUnit(RandomCoordinate()))
     {
         Debug.Log("Random player set up!");
         hexMapCamera = hexMapCamera.GetComponent <HexMapCamera>();
         // hexMapCamera.MovingCameraToUnit();
     }
 }
Ejemplo n.º 3
0
 private void Awake()
 {
     hexGrid      = hexGrid.GetComponent <HexGrid>();
     hexMapEditor = hexMapEditor.GetComponent <HexMapEditor>();
 }