示例#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
 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>();
 }