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 }
void Awake() { instance = this; }
void Awake() { instance = this; }