Exemplo n.º 1
0
        private void Awake()
        {
            animator = GetComponent <Animator>();
            if (!gunSocket)
            {
                gunSocket = GetComponent <GunSocket>();
            }

            if (!gunSocket)
            {
                enabled = false;
            }
        }
Exemplo n.º 2
0
 private void Awake()
 {
     gunSocket = GetComponent <GunSocket>();
 }
 private void Awake()
 {
     recoilComponents = GetComponentsInChildren <IRecoil>();
     gunSocket        = GetComponent <GunSocket>();
 }