Beispiel #1
0
	private void Awake()
	{
#if UNITY_EDITOR
		orientation = gameObject.AddComponent<Orientation>();
#else
		orientation = gameObject.AddComponent<SensorFusion>();
#endif
		stepDetector = gameObject.AddComponent<StepDetector>();

#if UNITY_EDITOR
		gps = gameObject.AddComponent<GPSFake>();
#elif UNITY_ANDROID
				gps = gameObject.AddComponent<GPSAndroid>();
#else
				gps = gameObject.AddComponent<GPSGeneral>();
#endif

	}
Beispiel #2
0
 void Awake()
 {
     instance = this;
 }
 void Awake()
 {
     instance = this;
 }