Exemplo n.º 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);
        }
Exemplo n.º 2
0
 void Awake()
 {
     Instance = this;
 }