コード例 #1
0
ファイル: XRGun.cs プロジェクト: CanadianADLlab/UnityXRTools
 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();
 }
コード例 #2
0
 void Start()
 {
     interactable          = GetComponent <InteractableObject>();
     secondaryInteractable = GetComponent <InteractableSecondaryGrab>();
     DisableMeshes();
 }