Пример #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;
 }
Пример #2
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;
    }