unity script functions start code example
Example 1: void start
void Start()
{
//Whatever you want to happen on start
}
Example 2: Start() Awake() Update()
Start()
{
//Gets called on the first frame when the script is run
}
Update()
{
//Gets called everyframe, for example if you wanted to
//increase a number every frame the do it here
}
Awake()
{
//The same as start but can sometimes be more effiecient in some situations
}