// Use this for initialization void Start() { gesture = GetComponent <HeadGesture> (); dashboard = GameObject.Find("Dashboard"); startRotation = dashboard.transform.eulerAngles; CloseDashboard(); }
// Use this for initialization void Start() { gesture = GetComponent<HeadGesture>(); dashboard = GameObject.Find("Dashboard"); startRotation = dashboard.transform.eulerAngles; CloseDashboard(); }
// Use this for initialization void Start() { gesture = GetComponent <HeadGesture>(); camera = Camera.main.transform; previousCameraAngle = CameraAngleFromGround(); actrl = GameObject.Find("PoseImage").GetComponent <AnimationControll>(); }
// Use this for initialization void Start() { gesture = GetComponent <HeadGesture>(); dashBoard = GameObject.Find("Dashboard"); print(dashBoard.name); startRotation = dashBoard.transform.eulerAngles; print("startrotation" + startRotation); }
void Start() { gesture = GetComponent <HeadGesture>(); dashboard = GameObject.Find("Dashboard"); //inicializamos startRotationel tablero de instrumentos en su posición abierta startRotation = dashboard.transform.eulerAngles; CloseDashboard(); }
void Start() { controller = GetComponent<CharacterController> (); footsteps = GetComponent<AudioSource> (); head = Camera.main.transform.Find ("MeHead"); body = transform.Find ("MeBody"); gesture = GameObject.Find ("GameController").GetComponent<HeadGesture> (); walking = false; }
// Use this for initialization void Start() { gesture = GetComponent <HeadGesture> (); StartRotaion = Soulution.transform.eulerAngles; StartPosition = Soulution.transform.position; SetSolution(); }
void Start() { camera = GameObject.FindWithTag("MeCamera").GetComponent <Camera>(); controller = GetComponent <CharacterController> (); footsteps = GetComponent <AudioSource> (); head = GameObject.FindWithTag("MeHead"); body = GameObject.FindWithTag("MeBody"); gesture = GetComponent <HeadGesture> (); walking = false; verticalVelocity = 0.0f; }
void Start() { isOpen = true; gesture = GetComponent <HeadGesture>(); dashboard = GameObject.Instantiate(dashboardPrefab, AttachPoint); UIDashBoard dashboardOptions = dashboard.GetComponent <UIDashBoard>(); dashboardOptions.InputMultiplexer = Multiplexer; startRotation = dashboard.transform.localEulerAngles; EndingGrowScale = dashboard.transform.localScale; CloseDashBoard(); }
// Use this for initialization void Start() { lookWalk = GetComponent <HeadLookWalk> (); gesture = GameObject.Find("GameController").GetComponent <HeadGesture> (); }
private void Update() { // Grab the current head transform and broadcast it to all the other users in the session Transform headTransform = Camera.main.transform; // Transform the head position and rotation from world space into local space Vector3 headPosition = transform.InverseTransformPoint(headTransform.position); Quaternion headRotation = Quaternion.Inverse(transform.rotation) * headTransform.rotation; //GameObject tmpHeadText = GameObject.Find("HeadText(Clone)"); //tmpHeadText.transform.position = overheadPos; //Debug.Log(overheadTex.text); CustomMessages.Instance.SendHeadTransform(headPosition, headRotation); Vector3 overheadPos = headPosition; overheadPos.y += 0.3f; overheadTex = OverheadText.GetComponent <TextMesh>(); //overheadTex.text = "ABC"; if (InterjectionMode.InterjectionModeFlag == true) { gesture = GetComponent <HeadGesture>(); cntUpTimer += Time.deltaTime; //if (InterjectionMode.speechText == "" && InterjectionMode.mugon == true) //{ // overheadTex.text = "Silence"; // Debug.Log("無言"); //} //else if(InterjectionMode.speechText!="" && InterjectionMode.mugon==false) //{ // overheadTex.text = ""; // Debug.Log(""); //} int ret = Array.IndexOf(data, InterjectionMode.speechText); if (ret >= 0 || gesture.isMovingDown) { overheadTex.text = "Yes"; cntUpTimer = 0.0f; Debug.Log("!!!"); } int ret2 = Array.IndexOf(data2, InterjectionMode.speechText); if (ret2 >= 0 || gesture.isRightMove || gesture.isLeftMove) { overheadTex.text = "No"; cntUpTimer = 0.0f; Debug.Log("???"); } if (cntUpTimer >= 5.0f) { overheadTex.text = ""; cntUpTimer = 0.0f; } } CustomMessages.Instance.SendOverheadText(overheadPos, overheadTex.text); }
// Use this for initialization void Start() { //拿到当前vr场景中的两个对象 lookWalk = GetComponent <HeadLook_walk>(); gesture = GameObject.Find("GameController").GetComponent <HeadGesture>(); }
// Use this for initialization void Start() { lookWalk = GetComponent<HeadLookWalk>(); gesture = GameObject.Find("GameController").GetComponent<HeadGesture>(); }
void Start() { gesture = GetComponent <HeadGesture>(); CloseDashboard(); }