Ejemplo n.º 1
0
    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 );
    }
Ejemplo n.º 2
0
    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);
    }