Inheritance: MonoBehaviour
Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        //	txt = gameObject.GetComponent<Text>();

        be = camera.GetComponent<Blur>();

        tbo = camera.GetComponent<TBOrbit>();
    }
Exemplo 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 = camera;

        ChangeMaterials( m_diffuseOn );
    }
Exemplo n.º 3
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);
    }