private void Awake()
        {
            animator = GetComponent <Animator>();
            if (!gunSocket)
            {
                gunSocket = GetComponent <GunSocket>();
            }

            if (!gunSocket)
            {
                enabled = false;
            }
        }
 private void Awake()
 {
     gunSocket = GetComponent <GunSocket>();
 }
Exemple #3
0
 private void Awake()
 {
     recoilComponents = GetComponentsInChildren <IRecoil>();
     gunSocket        = GetComponent <GunSocket>();
 }