Esempio n. 1
0
 void Awake()
 {
     m_Shake      = GetComponent <UCamShakeMgr>();
     m_Zoom       = GetComponent <UCamZoomMgr>();
     m_curMatch   = GameSystem.Instance.mClient.mCurMatch;
     m_playGround = m_curMatch.mCurScene.mGround;
     m_basket     = m_curMatch.mCurScene.mBasket;
 }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        UCamShakeMgr sm = Camera.main.GetComponent <UCamShakeMgr>( );

        if (sm != null)
        {
            sm.AddCamShake(m_vMagnitude, m_fDurationSec, transform.position);
        }
    }
Esempio n. 3
0
    void Awake()
    {
        m_Shake = GetComponent <UCamShakeMgr>();
        if (m_Shake == null)
        {
            m_Shake = gameObject.AddComponent <UCamShakeMgr>();
        }

        m_Zoom = GetComponent <UCamZoomMgr>();
        if (m_Zoom == null)
        {
            m_Zoom = gameObject.AddComponent <UCamZoomMgr>();
        }

        m_curMatch = GameSystem.Instance.mClient.mCurMatch;
    }
Esempio n. 4
0
 void Awake()
 {
     shakeMgr = GetComponent <UCamShakeMgr>();
     animator = GetComponent <Animator>();
 }