コード例 #1
0
ファイル: Rowing.cs プロジェクト: iRandz/AAU-P6
 // Update is called once per frame
 private void Start()
 {
     //rightHand = GameObject.Find("debugCube");
     leftHand  = GameObject.Find("LeftHand");
     rightHand = GameObject.Find("RightHand");
     vibration = vibrationManager.GetComponent <ControlerVibration>();
     _audio    = audioManager.GetComponent <AudioManager>();
 }
コード例 #2
0
ファイル: HeadSnapPointManager.cs プロジェクト: iRandz/AAU-P6
 private void Start()
 {
     bodySnapPointPosition = bodySnapPoint.transform.position;
     originalHeadPosition  = head.transform.position;
     originalHeadRotation  = head.transform.rotation;
     headRigidbody         = head.GetComponent <Rigidbody>();
     headRigidbodySript    = head.GetComponent <oxRigidbody>();
     _customThrowable      = head.GetComponent <CustomThrowable>();
     rightHand             = GameObject.Find("RightHand");
     leftHand        = GameObject.Find("LeftHand");
     _oxEventManager = head.GetComponent <oxEventManager>();
     vibration       = vibrationManager.GetComponent <ControlerVibration>();
 }