// Use this for initialization
 void Start()
 {
     gpsControl          = gpsControlObject.GetComponent <GPSControl>();
     characterController = cameraContainer.GetComponent <CharacterController>();
     cameraObject        = cameraContainer.transform.GetChild(0).gameObject;
     cam = cameraObject.GetComponent <Camera>();
 }
示例#2
0
 // Use this for initialization
 void Start()
 {
     gpsControl        = GPSobj.GetComponent <GPSControl> ();
     cameraObject      = cameraContainer.transform.GetChild(0).gameObject;
     camera            = cameraObject.GetComponent <Camera> ();
     rb                = cameraContainer.GetComponent <Rigidbody> ();
     rb.freezeRotation = true;
 }
示例#3
0
        public FrTopbar()
        {
            InitializeComponent();

            defSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, 20);

            gpscontrol = new GPSControl();
            gpscontrol.GPSDataEvent += new GPSControl.GPSDataHandler(gpscontrol_GPSDataEvent);
        }
 // Use this for initialization
 void Start()
 {
     Instance = this;
     DontDestroyOnLoad(gameObject);
     StartCoroutine(StartGPSService());
 }