unity awake event code example
Example: 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
}