I have been searching for a while now, to find out how to make my player transition to a flying mode when picking up an object. This flying mode came with an asset, but unfortunately I cant find a way to transition through the use of the object. In the PowerUp script I want the transition to be for 10 seconds and I realise that Couritine is needed for this, but I want to find out how to the transition first.
Here is the simple PowerUp script:
and here is what i believe to be the relevant part of the flying script:
I would greatly appreciate help, because I am new to C#, thanks.