Exemple #1
0
        void Start()
        {
            grabClipArea = GetComponentInChildren <GrabberArea>();

            if (transform.parent != null)
            {
                parentWeapon = transform.parent.GetComponent <RaycastWeapon>();
            }
        }
Exemple #2
0
        void Start()
        {
            if (GameObject.FindGameObjectWithTag("Player"))
            {
                input = GameObject.FindGameObjectWithTag("Player").GetComponent <InputBridge>();
            }

            grabClipArea = GetComponentInChildren <GrabberArea>();

            if (transform.parent != null)
            {
                parentWeapon = transform.parent.GetComponent <RaycastWeapon>();
            }
        }
        void Awake()
        {
            grabClipArea = GetComponentInChildren <GrabberArea>();

            if (transform.parent != null)
            {
                parentWeapon = transform.parent.GetComponent <RaycastWeapon>();
            }

            // Check to see if we started with a loaded magazine
            if (HeldMagazine != null)
            {
                AttachGrabbableMagazine(HeldMagazine, HeldMagazine.GetComponent <Collider>());
            }
        }