HI. I Need Help

I Use Using RepNotify Variables in my Singleplayer/Offline Game.
I need advice. I am writing code about changing weapons without inventory system.
So code work’s fine but, my game Singleplayer/Offline.
How can I replace Repnotify? Functions can be replaced? How can fix this code without break my game

Why do you replicate a variable in an offline single player game? That makes no sense…
Use delegates/events instead(Event dispatchers)

Yes, use interfaces

Thank You So Much

You are welcome