Hi guys,
I’m kind of new to unity and c# in general. I’m creating an infinite runner as my first project and so far I have a powerup that adds points to the players score but I’m also looking for a power"down" that slows the players maxspeed by ‘x’.
I’n wondering how can I access the variable maxSpeed when it is in another class? I know that each class is considered a component and you need two components on the same object to interact with each other… is that correct? The problem is that I obviously can’t put the player controller script onto the powerup?
Help seriously appreciated!