Example #1
0
    private void ContinuePlaying(object sender, EventArgs e)
    {
        WinPanel.Disable();
        SpriteState state = new SpriteState {
            pressedSprite = _restartButtonNormalHoverStateSprite
        };

        _restartButton.GetComponent <Button>().spriteState  = state;
        _restartButton.GetComponent <Button>().image.sprite = _restartButtonNormalStateSprite;
        GameModel.State = GameState.Idle;
    }