public override void init(GameObject go, System.Object customPhysics, Inputs inputs)
 {
     flightPhysics = (FlightPhysics)customPhysics;
     flightInputs = (FlightInputs)inputs;
     base.init (go);
     setupAnimation (bankingParameter, ref bankingHash);
 }
 public override void init(GameObject go, System.Object customPhysics, Inputs inputs)
 {
     flightPhysics = (FlightPhysics)customPhysics;
     flightInputs = (FlightInputs)inputs;
     base.init (go);
     name = "Flaring Mechanic";
     setupAnimation (flaringAnimation, ref flaringHash);
 }
        public override void autoConfig()
        {
            base.autoConfig ();

            if (!flightObject) {
                flightObject = GameObject.FindGameObjectWithTag ("Player");
            }

            nullCheck ("flightObject", flightObject, "Please set it to an object with a Free Flight Component");

            ffComponent = flightObject.GetComponent<FreeFlight> ();

            nullCheck ("", ffComponent, "This object can only display stats info for objects with a Free Flight Component.");

            fInputs = ffComponent.modeManager.flightMode.flightInputs;
            gInputs = ffComponent.modeManager.groundMode.groundInputs;
        }
        public override void init(GameObject go)
        {
            base.init (go);

            rigidbody = gameObject.GetComponent<Rigidbody> ();
            flightModePhysics.init (rigidbody);

            if (flightInputs == null)
                flightInputs = new FlightInputs ();
            if (flightModeMechanics == null)
                flightModeMechanics = new FlightMechanics ();
            if (flightModePhysics == null)
                flightModePhysics = new FlightPhysics ();

            name = "Flight Mode";
            usePhysics = true;

            base.setupMechanics(flightModeMechanics, flightInputs, flightModePhysics);
        }