void Start() { flightChecker = FlightChecker.Instance; flightChecker.SetTarget(transform); ActivateTopCamera(); }
void Start() { shakeDetectionThreshold *= shakeDetectionThreshold; lowPassValue = Input.acceleration; lowPassFilterFactor = accelerometerUpdateInterval / lowPassKernelWidthInSeconds; flightChecker = FlightChecker.Instance; }
void Awake() { rb = GetComponent <Rigidbody>(); flightChecker = FlightChecker.Instance; wheel = new Wheel[4]; wheel[0] = wheelObject[0].GetComponent <Wheel>(); wheel[1] = wheelObject[1].GetComponent <Wheel>(); wheel[2] = wheelObject[2].GetComponent <Wheel>(); wheel[3] = wheelObject[3].GetComponent <Wheel>(); }
void Start() { flightChecker = FlightChecker.Instance; flightChecker.SetTarget(transform); centerOfMass.SetActive(true); rb = GetComponent <Rigidbody>(); foldedWings = new Vector3(0.1f, 0f, 0.7f); deployedWings = new Vector3(0.1f, 1.5f, 0.7f); SetUpWingTrails(); gyro = Input.gyro; if (!gyro.enabled) { gyro.enabled = true; } }
void Start() { flightChecker = FlightChecker.Instance; initialColor = new Color(meterFill.color.r, meterFill.color.g, meterFill.color.b, meterFill.color.a); flightColor = new Color(1f, .01f, .01f); }
void Start() { flightChecker = FlightChecker.Instance; }