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>(); }
// 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>(); }
// Use this for initialization void Start() { player = GetComponentInParent<PlayerController> (); leftHand = GetComponentInChildren<LeftHandController> (); hand = GetComponentInChildren<HandController> (); }
// 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>(); }
// Use this for initialization void Start() { player = GetComponentInParent <PlayerController> (); leftHand = GetComponentInChildren <LeftHandController> (); hand = GetComponentInChildren <HandController> (); }