// Use this for initialization void Start() { // txt = gameObject.GetComponent<Text>(); be = camera.GetComponent<Blur>(); tbo = camera.GetComponent<TBOrbit>(); }
void Awake() { if(Instance != null) { Destroy(this); return; } Instance = this; #if WEB_DEMO_ENABLED if(!m_TBOrbit) m_TBOrbit = GetComponent<TBOrbit>(); #endif if(!m_camera) m_camera = camera; ChangeMaterials( m_diffuseOn ); }
void Awake() { if (Instance != null) { Destroy(this); return; } Instance = this; #if WEB_DEMO_ENABLED if (!m_TBOrbit) { m_TBOrbit = GetComponent <TBOrbit>(); } #endif if (!m_camera) { m_camera = GetComponent <Camera>(); } ChangeMaterials(m_diffuseOn); }