示例#1
0
    private void OnEndShot()
    {
        string icon = GetIconByProgress(resultState);

        if (CatCharacter.bestPoseScore <= status.GetProgress())
        {
            CatCharacter.bestPose      = icon;
            CatCharacter.bestPoseScore = status.GetProgress();
        }
        result.Show();
        result.ShowImage(icon);
        result.ShowStats(CatCharacter.lastLikes, CatCharacter.lastFollowers);
        if (CatCharacter.lastFollowers <= 0)
        {
            result.ShowFail(status.GetProgress() < 1f ?
                            ResultWindow.Reason.FailedPose :
                            ResultWindow.Reason.BadMood);
        }
        else
        {
            result.HideFailMessage();
        }
    }