Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 void Start()
 {
     interactable          = GetComponent <InteractableObject>();
     secondaryInteractable = GetComponent <InteractableSecondaryGrab>();
     DisableMeshes();
 }