i’ve some script. and ai wanna instance some variable of other script.
i’ve a game controller with a script called 'gamecontroller.cs
and i’ve too a prefab called asteroid with has a script called mover.cs
i want instance a variable called ‘speed’ at mover.cs in gamecontroller.cs
i did someting like:
public Mover mover
and try call mover.speed. but doesn’t work. someone could help me