// Use this for initialization void Start() { gpsControl = gpsControlObject.GetComponent <GPSControl>(); characterController = cameraContainer.GetComponent <CharacterController>(); cameraObject = cameraContainer.transform.GetChild(0).gameObject; cam = cameraObject.GetComponent <Camera>(); }
// 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; }
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()); }