Created
April 11, 2023 08:05
-
-
Save adammyhre/8c55bbb846252ee616231ab2e1b0aa7c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Match3 { | |
public class GridObject<T> { | |
GridSystem2D<GridObject<T>> grid; | |
int x; | |
int y; | |
T gem; | |
public GridObject(GridSystem2D<GridObject<T>> grid, int x, int y) { | |
this.grid = grid; | |
this.x = x; | |
this.y = y; | |
} | |
public void SetValue(T gem) { | |
this.gem = gem; | |
} | |
public T GetValue() => gem; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment