Beispiel #1
0
 void OnEnable()
 {
     rt = Resources.Load <Texture>("Textures/lightMap");
     //tm = GameObject.FindObjectOfType<TraceMainCamera>();
     tm = Resources.Load <GameObject> ("levelPublic/lightMapCamera").GetComponent <TraceMainCamera> ();
 }
Beispiel #2
0
 void Awake()
 {
     traceMainCamera = this;
     DontDestroyOnLoad(gameObject);
 }