public Gemstone(GemstoneSO gemstoneSO, int x, int y) { GemstoneSO = gemstoneSO; X = x; Y = y; }
public Gemstone CreateGemstone(int x, int y) { GemstoneSO randomSO = (GemstoneSO)_gemstoneSpawnTable.ChooseRandom(); Gemstone gemStone = new Gemstone(randomSO); gemStone.SetPosition(x, y); return(gemStone); }
public bool CheckMatch(GemstoneSO gemstoneSO) { return(GemstoneSO.IsMatching(gemstoneSO)); }
public Gemstone(GemstoneSO gemStoneSO) : this(gemStoneSO, 0, 0) { }
public bool IsMatching(GemstoneSO gemStoneSO) { return(_matchingGemStones.Contains(gemStoneSO)); }