public void SetData(ShipData data, WorldMain world) { Data = data; Data.ShipObj(this); world_main = world; UpdateTurn(); }
// 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); }
void Start() { world = GetComponent <WorldMain>(); //selectedTileType = Tile.grass; dropdown.AddOptions(tileTypes); }