Current() публичный Метод

public Current ( ) : Color
Результат Color
Пример #1
0
    public void Flood(GridPlace start)
    {
        if (!start.busy)
        {
            flooded = true;
            if (tutorialEnabled && !canFlood)
            {
                return;
            }

            if (!tutorialEnabled && start.hexaCube.hexColor == colorSelector.Current())
            {
                //Don't let players make dumb moves (unless it's the tutorial)
                return;
            }

            lastMoveScore /= 4;             // halves your combo bonus

            StartCoroutine(Utils.FillSiblings(start, colorSelector.Current()));
            AudioController.Instance.PlaySound("fillchime");
            DoMove();
        }
    }