Example #1
0
    public void SetData(ShipData data, WorldMain world)
    {
        Data = data;
        Data.ShipObj(this);

        world_main = world;

        UpdateTurn();
    }
Example #2
0
        // Start is called before the first frame update
        void Start()
        {
            world     = GetComponent <WorldMain>();
            uiHandler = GetComponent <UIHandler>();

            tileLayerMask      = LayerMask.GetMask("TileMask");
            gridCube           = Instantiate(gridCubeGo, new Vector3(0, -2, 0), Quaternion.identity);
            selectionGrid      = Instantiate(selectionGridGo, new Vector3(0, -2, 0), Quaternion.identity);
            selectionStartTile = Instantiate(selectionStartTileGo, new Vector3(0, -2, 0), Quaternion.identity);
            selectionEndTile   = Instantiate(selectionEndTileGo, new Vector3(0, -2, 0), Quaternion.identity);

            gridCube.SetActive(false);
            selectionGrid.SetActive(false);
            selectionStartTile.SetActive(false);
            selectionEndTile.SetActive(false);
        }
Example #3
0
 void Start()
 {
     world = GetComponent <WorldMain>();
     //selectedTileType = Tile.grass;
     dropdown.AddOptions(tileTypes);
 }