ok so im having a problem with reading variables from instantiated prefabs.
basically im making bus simulator... and in main menu, player can chose which bus he will drive, lets say he chooses School Bus.
so when level 1 is loaded, one FSM instantiates chosen bus using
Create object action.
i store that object into global gameobject variable called "Selected Vehicle"
this is how prefab of School bus looks like... i want to get a reading of
Speed MS. it is a Float variable, inside Speedometer component (script)
i tried using get property, or get component, or set object value... nothing works...
get component should have worked... but the problem is this:
i cant select Speed MS anywhere... i can select component Speedometer, but i cant for the love of god select that i want to get float variable Speed MS of that speedometer component...