private void Start() { Player = GameObject.FindGameObjectWithTag("Player"); HandInitCube = Player.transform.Find("FingerCubeReady").gameObject; HandObj = Player.transform.Find("Finger").gameObject; INIT = ExpInitializer.Instance; //Initializes, read, and verify INIT file. SYNCEXP = SyncExperiment.Instance; WRITER = new DataWriter(SYNCEXP.subjectNum, Player.name); EYES = VREyeTracker.Instance; GAZED = VRGazeTrail.Instance; HAND = HandObj.GetComponent <Hand>(); SYNCACT = HAND.transform.parent.GetComponent <SyncActors>(); //TurnOff(Blocks); TurnOff(FixationObject); TurnOff(HandInitCube); if (INIT.IsAvailable) { GetTrialListAndShuffle(); } _errorNumber = 0; _trialNumber = 1; _expPhase = 0; JointProceed = false; }
private void Start() { myCamera = this.transform.parent.Find("Camera").GetComponent <Camera>(); _cameraTransform = myCamera.transform; syncActor = this.transform.parent.GetComponent <SyncActors>(); EYES = VREyeTracker.Instance; }
// Use this for initialization void Start() { SYNC = this.transform.parent.GetComponent <SyncActors>(); _eyeControl = this.GetComponent <EyeControl>(); Left = _eyeControl.LeftEye; Right = _eyeControl.RightEye; }
//public Eyes Eyes; public OtherPlayer(GameObject otherPlayer) { if (otherPlayer.tag != "OtherPlayer") { Debug.LogError("Error Creating OtherPlace Class. Expecting GameObject with tag 'OtherPlayer'"); } Player = otherPlayer; SyncValues = Player.GetComponent <SyncActors>(); Head = Player.transform.Find("Camera"); Hand = Player.transform.Find("Finger").GetComponent <Hand>(); //Eyes = Player.transform.Find("Avatar").GetComponent<Eyes>(); }