is start called after dontdestroyonload
void Start(){
DontDestroyOnLoad (gameObject);
}
// how to call start/awake when loading a new scene on an object
// that has DontDestroyOnLoad.
void OnLevelWasLoaded(){
Debug.Log ("A new scene was loaded");
}
Also in C#:
- how to add to a list c#
- c# ?
- c# delegate return value invoke
- c# loop through array
- stateteach.net
- multidimensional meaning
- change Backcolor c#
- edit bool from diffirent script
- asp.net core task iactionresult
- c# length of array
- loop through string array c#
- instantiate object in circle
- download and run exe c# 1 button
- how to hide and show object in unity script
- quaternion euler
- c# ref
- array copy c#
- convert string to decimal c#
- repeat 10 timesw c#
- c# change colour of console
- nunit return parameter
- use enter key unity
- get string character by index c#
- c# changimg to one decimal place