Ejemplo n.º 1
0
        public void Start()
        {
            if (camera == null)
            {
                //camera = new GameObject().AddComponent<PartCamera>();
                camera = new PartCamera(this.part, resourceScanning, bulletName, currentHits, rotatorZ, rotatorY, zoommer, stepper, cameraName, distance, windowSize);
            }
            capObject = part.gameObject.GetChild(cap);
            camObject = part.gameObject.GetChild(cameraName);
            //camObject.transform.Rotate(new Vector3(0, 0, 1f), 90);

            //var aaa1 = transform.FindChild("model");
            //Transform aaa11 = null;
            //foreach (Transform child in aaa1)
            //{
            //    //Debug.Log("AAAAAA "+child.name);
            //    if (child.name.IndexOf("OnboardCamera") != -1)
            //        aaa11 = child;
            //}
            //// var aaa11 = aaa1.FindChild("OLDD/DockingCam/OnboardCamera(Clone)");
            //var aaa2 = aaa11.FindChild("OnboardCamera_03");
            //var aaa3 = aaa2.FindChild("Case");
            //var aaa4 = aaa3.FindChild("Tube");
            //var aaa5 = aaa4.FindChild("Lenz");
            //CamToAim = aaa5.FindChild("CamExt");
        }
Ejemplo n.º 2
0
 public void Start()
 {
     if (camera == null)
     {
         //camera = new GameObject().AddComponent<PartCamera>();
         camera = new PartCamera(this.part, rotatorZ, rotatorY, zoommer, stepper, cap, cameraName, distance, hits);
     }
     capObject = part.gameObject.GetChild(cap);
 }
Ejemplo n.º 3
0
        public void Start()
        {
            if (camera == null)
            {
                //camera = new GameObject().AddComponent<PartCamera>();
                camera = new PartCamera(this.part, resourceScanning, bulletName, currentHits, rotatorZ, rotatorY, zoommer, stepper, cameraName, distance, windowSize);
            }
            capObject = part.gameObject.GetChild(cap);
            camObject = part.gameObject.GetChild(cameraName);
            //camObject.transform.Rotate(new Vector3(0, 0, 1f), 90);

            //var aaa1 = transform.FindChild("model");
            //Transform aaa11 = null;
            //foreach (Transform child in aaa1)
            //{
            //    //Debug.Log("AAAAAA "+child.name);
            //    if (child.name.IndexOf("OnboardCamera") != -1)
            //        aaa11 = child;
            //}
            //// var aaa11 = aaa1.FindChild("OLDD/DockingCam/OnboardCamera(Clone)");
            //var aaa2 = aaa11.FindChild("OnboardCamera_03");
            //var aaa3 = aaa2.FindChild("Case");
            //var aaa4 = aaa3.FindChild("Tube");
            //var aaa5 = aaa4.FindChild("Lenz");
            //CamToAim = aaa5.FindChild("CamExt");
        }
Ejemplo n.º 4
0
        public void Start()
        {
            if (camera == null)
            {
                //camera = new GameObject().AddComponent<PartCamera>();
                camera = new PartCamera(this.part, rotatorZ, rotatorY, zoommer, stepper, cap, cameraName, distance, hits);

            }
            capObject = part.gameObject.GetChild(cap);
        }