private void Start() { if (GetComponent <InteractableSecondaryGrab>()) { secondGrab = GetComponent <InteractableSecondaryGrab>(); } interactableObject = GetComponent <InteractableObject>(); startingLocalRotation = transform.localRotation; fireRate = 1 / FireRate; // Shots per second roundsInClip = ClipSize; InitAudio(); CheckForInputConflicts(); }
void Start() { interactable = GetComponent <InteractableObject>(); secondaryInteractable = GetComponent <InteractableSecondaryGrab>(); DisableMeshes(); }