Example #1
0
    public void DestroyPlanetInSlot()
    {
        DestroyEffectActivate();
        if (planet != null)
        {
            if (!planet.dontDestroy)
            {
                SlotController.CanPlanetMove = false;

                if (planet.CountBonus() != 0)
                {
                    planet.ActivateBonus();
                }
                else
                {
                    StartCoroutine(DestroyPlanet());
                }
            }
        }
    }