コード例 #1
0
 void Awake()
 {
     _pose          = GetComponentInParent <SteamVR_Behaviour_Pose>();
     ammoCOntroller = FindObjectOfType <LauncherAmmoController>();
 }
コード例 #2
0
 private void Start()
 {
     ammoControl = FindInActiveObjectByLayer(LayerMask.NameToLayer("LauncherAmmo")).GetComponent <LauncherAmmoController>();
     StartCoroutine(Die(10.0f));
 }