public Transform target; // // Use this for initialization void Start() { control3D1 = GameObject.Find("Player").GetComponent <CharController3D1>(); //"OBJECT NAME" <CLASS NMAE> cameraListener = GameObject.Find("CameraListener").GetComponent <CameraListener>(); //"OBJECT NAME" <CLASS NMAE> headMonitor = GameObject.Find("03_Head").GetComponent <HeadMonitor>(); //"OBJECT NAME" <CLASS NMAE> cameraX = control3D1.getCurrentXAxis(); //Get original position of the camera when the Kinect view is enable cameraY = transform.position.y - yMovementModifier; // Pull current x Axis of the head cameraZ = transform.position.z; // Pull current z Axis of the head }
// Set default camera on Startup void Start() { movement2D = GameObject.Find("Player").GetComponent <CharController2D>(); //"OBJECT NAME" <CLASS NMAE> movement3D1 = GameObject.Find("Player").GetComponent <CharController3D1>(); //"OBJECT NAME" <CLASS NMAE> movement3D2 = GameObject.Find("Player").GetComponent <CharController3D2>(); //"OBJECT NAME" <CLASS NMAE> timerView3d = GameObject.Find("TimerView3d"); //"OBJECT NAME" <CLASS NMAE> intTime = (int)playerTime; timerView3d.guiText.text = "3DTimer : " + intTime.ToString(); cam2D.camera.enabled = true; cam3D1.camera.enabled = false; cam3D2.camera.enabled = false; }
// Use this for initialization void Start() { char2D = GameObject.Find("Player").GetComponent <CharController2D>(); //"OBJECT NAME" <CLASS NAME> char3D1 = GameObject.Find("Player").GetComponent <CharController3D1>(); //"OBJECT NAME" <CLASS NAME> }