示例#1
0
 void Start()
 {
     rightArmController             = GameObject.Find("RightArmTarget").GetComponent <RightArmController>();
     leftArmController              = GameObject.Find("RightArmTarget").GetComponent <LeftArmController>();
     rightHandController            = GameObject.Find("RightArmTarget").GetComponent <RightHandController>();
     leftHandController             = GameObject.Find("RightArmTarget").GetComponent <LeftHandController>();
     rightHandOrientationController = GameObject.Find("RightArmTarget").GetComponent <RightHandOrientationController>();
     leftHandOrientationController  = GameObject.Find("RightArmTarget").GetComponent <LeftHandOrientationController>();
 }
示例#2
0
 // Use this for initialization
 void Start()
 {
     currentWeapon = null;
     GameState.Instance.currentState = States.GAMEPLAY;
     //gameplay = true;
     //equipment = false;
     //pickUp = false;
     myAnimator       = GetComponent <Animator>();
     originalRotation = pivot.transform.localRotation;
     newForward       = this.transform.forward;
     hand             = GameObject.Find("mixamorig:RightHand").GetComponent <HandController>();
     leftHand         = GameObject.Find("mixamorig:LeftHand").GetComponent <LeftHandController>();
 }
示例#3
0
 // Use this for initialization
 void Start()
 {
     player = GetComponentInParent<PlayerController> ();
     leftHand = GetComponentInChildren<LeftHandController> ();
     hand = GetComponentInChildren<HandController> ();
 }
示例#4
0
 // Use this for initialization
 void Start()
 {
     currentWeapon = null;
     GameState.Instance.currentState = States.GAMEPLAY;
     //gameplay = true;
     //equipment = false;
     //pickUp = false;
     myAnimator = GetComponent<Animator>();
     originalRotation = pivot.transform.localRotation;
     newForward = this.transform.forward;
     hand = GameObject.Find("mixamorig:RightHand").GetComponent<HandController>();
     leftHand = GameObject.Find("mixamorig:LeftHand").GetComponent<LeftHandController>();
 }
示例#5
0
 // Use this for initialization
 void Start()
 {
     player   = GetComponentInParent <PlayerController> ();
     leftHand = GetComponentInChildren <LeftHandController> ();
     hand     = GetComponentInChildren <HandController> ();
 }