Ejemplo n.º 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

	}
Ejemplo n.º 2
0
 void Awake()
 {
     instance = this;
 }
Ejemplo n.º 3
0
 void Awake()
 {
     instance = this;
 }