예제 #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;
 }