// Update is called once per frame void Update() { //tested it and start doesnt destroy the hold array lol worth looking at it tho if (Input.GetKeyDown(KeyCode.Space)) { Start(); } //idk why but it doesnt work properly :/ if (Input.GetKeyDown(KeyCode.F)) { SceneManager.LoadScene(SceneManager.GetActiveScene().name); } //primary click if (Input.GetMouseButtonDown(0)) { Vector2Int MousePos = world.GetCell(TGrid <int> .GetMouseWorldPos()); Debug.Log($"X = {MousePos.x}, Y = {MousePos.y}, VALUE : {world.gridArray[MousePos.x, MousePos.y]}"); highlightMap.SetTile((Vector3Int)MousePos, highlightTile); } //secondary click if (Input.GetMouseButtonDown(1)) { int value = 26; world.SetValue(TGrid <int> .GetMouseWorldPos(), value); } }
private void LoadGroup(TGroup group, string groupName, TGrid grid) { VList <T> returnList = FetchInformation(group); if (Session[groupName] != null) { List <T> tempList = (List <T>)Session[groupName]; returnList.AddRange(tempList); } grid.DataSource = returnList; grid.DataBind(); }
// Start is called before the first frame update void Start() { world = new TGrid <int>(width, height, cellSize, originPos); }