Exemple #1
0
    public void SquareBomb()
    {
        isMatched = false;
        SpriteRenderer mySprite = GetComponent <SpriteRenderer>();

        mySprite.sprite = squareBomb;
        special         = SpecialCandy.SquareBomb;
    }
Exemple #2
0
    public void RowStripe()
    {
        isMatched = false;
        SpriteRenderer mySprite = GetComponent <SpriteRenderer>();

        mySprite.sprite = rowStripe;
        special         = SpecialCandy.RowStripe;
    }
Exemple #3
0
    public void ColorBomb()
    {
        isMatched = false;
        SpriteRenderer mySprite = GetComponent <SpriteRenderer>();

        gameObject.name = "rainbow";
        mySprite.sprite = colorBomb;
        special         = SpecialCandy.ColorBomb;
    }
Exemple #4
0
 public void Start()
 {
     special = SpecialCandy.None;
     StartCoroutine(CollapseCandy());
 }