private void Awake()
 {
     if (!m_WeaponTest)
     {
         m_WeaponTest = FindObjectOfType <WeaponTest>();
     }
 }
Exemplo n.º 2
0
        private void Awake()
        {
            if (!m_WeaponTest)
            {
                m_WeaponTest = FindObjectOfType <WeaponTest>();
            }

            m_WeaponTest.m_OnWeaponSwitch += SetUI;
        }
        void Awake()
        {
            m_MainCam = FindObjectOfType <Camera>();
            if (!m_WeaponTest)
            {
                m_WeaponTest = FindObjectOfType <WeaponTest>();
            }

            m_WeaponTest.m_OnDamagableExist += SetPointerPosition;
        }