Get the random Sprite to trigger two different event

I have been looking around for this answer and I can not find it. I want to have two sprites on the same sprite renderer that are been random to call two different events. The first event is to multiply the bet amount that is been called and the second is to stop the game. This what I go so far. Did anyone get any ideas?

   private RandomGameobject randomObjects;
    private SpriteRenderer spriteR;

    // Start is called before the first frame update
    private void OnEnable()
    {
        spriteR = gameObject.GetComponent<SpriteRenderer>();

        if (GetComponent<SpriteRenderer>().sprite = Bad)
        {
            Debug.Log("BadSprite");
        }
        if (GetComponent<SpriteRenderer>().sprite = reward)
        {
            Debug.Log("RewardSprite");
        }
    }

Do you want to trigger the event when the sprites are clicked or when they appear ?
If you want to trigger them when they are awakened:

private SpriteRenderer spriteR;
public Sprite reward, bad;      //Set the sprites in the Editor

private void OnEnable()
{
     spriteR = GetComponent<SpriteRenderer>();
     if (spriteR.sprite = bad)
     {
         //Quit the game here
     }
     if (spriteR.sprite = reward)
     {
         //Reward the user here
     }
}

If you want to trigger them when they are clicked, you need 1 more step: you need to add a BoxCollider to your sprite object.

private SpriteRenderer spriteR;
public Sprite reward, bad;      //Set the sprites in the Editor

void OnMouseDown()
{
     spriteR = GetComponent<SpriteRenderer>();
     if (spriteR.sprite = bad)
     {
         //Quit the game here
     }
     if (spriteR.sprite = reward)
     {
         //Reward the user here
     }
}

Thank you @Anis1808 for replaying. Close to what I am looking for, but I want it not to change the sprite, but give it a value or task. I already made it that to random. When the object is active on bad or rewards sprite it will give a reward or stop the game. Is there a way that I could make it when the name of the sprite is called on “OnEnable” like reward sprite it will give a reward.