I’m creating a menu for my game with GUI and i don’t want to spoil this forum,this is a really begginer question,sorry,but i’m learning yet…
My first wish is when the player click on start game button,a spotlight gonna increase your intensity until arrive 4,5 it’s an example
My second is make a delay,when the player click on start game,make a delay with 10seconds to start the game,during this 10 seconds the spotlight gonna increase your intensity,do you got it?
Thanks
I asked call other script because the code of spotlight and GUI are apart,so i don’t if have way to call a script,thx
You can call methods from other script is they’re public by using:
ScriptName.MyMethodName();
You can access variables from other scripts if the variable is public by using
GetComponent<MyScriptName>.myVariable;
Tutorials. you need to do them.
check the learn section at the top of the page.
Ok i’m gonna try,i’m really sorry,i’m a new user of unity,and learning now,i’m gonna search more and dedicate to learn with effort,thanks