예제 #1
0
    public void WinGame()
    {
        GameModel.State = GameState.Win;
        SpriteState state = new SpriteState {
            pressedSprite = _restartButtonEmphasizedHoverStateSprite
        };

        _restartButton.GetComponent <Button>().spriteState  = state;
        _restartButton.GetComponent <Button>().image.sprite = _restartButtonEmphasizedStateSprite;
        WinPanel.OnWin();
        isWon = false;
    }