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

            GameObject.DontDestroyOnLoad(dl);
        }
示例#2
0
 void Awake()
 {
     Instance = this;
 }