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; }
// Use this for initialization void Start() { UCamShakeMgr sm = Camera.main.GetComponent <UCamShakeMgr>( ); if (sm != null) { sm.AddCamShake(m_vMagnitude, m_fDurationSec, transform.position); } }
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; }
void Awake() { shakeMgr = GetComponent <UCamShakeMgr>(); animator = GetComponent <Animator>(); }