void Awake() { Instance = this; //Toon Shader 需要一个光照 var dirLight = Resources.Load <GameObject>("levelPublic/_Light"); var dl = Object.Instantiate(dirLight) as GameObject; GameObject.DontDestroyOnLoad(dl); }
void Awake() { Instance = this; }