コード例 #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);
    }
コード例 #2
0
 public void RespawnPlayInRandomCell()
 {
     gamePlayEditor.GetComponent <HexMapEditor>();
     while (!gamePlayEditor.CreateUnit(RandomCoordinate()))
     {
         Debug.Log("Random player set up!");
         hexMapCamera = hexMapCamera.GetComponent <HexMapCamera>();
         // hexMapCamera.MovingCameraToUnit();
     }
 }
コード例 #3
0
ファイル: GetHexInfo.cs プロジェクト: hyf4053/Land-Of-World
 private void Awake()
 {
     hexGrid      = hexGrid.GetComponent <HexGrid>();
     hexMapEditor = hexMapEditor.GetComponent <HexMapEditor>();
 }