Saving data that will be recalled and affect the game story...

In my game, I have a set of events that can be taken by the player, to either press the left mouse button, or the right mouse button. These events I would like to save and recall at the end of the game, so as to influence a different ending. How can this code be implemented? Do I make use of triggers?

Thanks in advance!

It seems to me like your question has a one-word answer : PlayerPrefs.

What else do you need to know? Triggers are a kind of collider and have nothing to do with what you’re talking about, so either you’re confused or didn’t properly explain your issue.