示例#1
0
    public Gemstone(GemstoneSO gemstoneSO, int x, int y)
    {
        GemstoneSO = gemstoneSO;

        X = x;
        Y = y;
    }
示例#2
0
    public Gemstone CreateGemstone(int x, int y)
    {
        GemstoneSO randomSO = (GemstoneSO)_gemstoneSpawnTable.ChooseRandom();
        Gemstone   gemStone = new Gemstone(randomSO);

        gemStone.SetPosition(x, y);

        return(gemStone);
    }
示例#3
0
 public bool CheckMatch(GemstoneSO gemstoneSO)
 {
     return(GemstoneSO.IsMatching(gemstoneSO));
 }
示例#4
0
 public Gemstone(GemstoneSO gemStoneSO) : this(gemStoneSO, 0, 0)
 {
 }
示例#5
0
 public bool IsMatching(GemstoneSO gemStoneSO)
 {
     return(_matchingGemStones.Contains(gemStoneSO));
 }