private void Starfighter_OnAccelerationResetLocalPositionZChanged(object sender, AccelerationResetLocalPositionZChangedEventArgs e) { // TODO needed? //Starfighter o = (Starfighter)sender; //float starfighterDeltaZ = o.transform.localPosition.z - e.prevLocalPositionZ; //transform.position -= starfighterDeltaZ * Vector3.forward; }
protected virtual void OnAccelerationResetLocalPositionZChanged(AccelerationResetLocalPositionZChangedEventArgs e) { accelerationResetLocalPositionZChanged(this, e); }