public override void action(Controller_motor controller) { float max_speed = controller.max_speed; float final_value = amount * max_speed; switch (type) { case types.minus: controller.speed -= final_value; break; case types.sum: controller.speed += final_value; break; case types.set: controller.speed = final_value; break; default: Debug.LogError(string.Format( "[handler_persentil_speed] no hay definicion " + "para el type: '{0}'", type)); throw new System.NotImplementedException(); } }
public override void action(Controller_motor controller) { var controller_danmaku = controller as Touha_controller; if (controller_danmaku) { controller_danmaku.automatic_shot = true; } }
public override void action(Controller_motor controller) { var handler_behaviour_delay = controller.gameObject.AddComponent < Handler_behaviour_delay>(); handler_behaviour_delay.handlers = handlers; handler_behaviour_delay.delay = delay; handler_behaviour_delay.run(); }
public override void action(Controller_motor controller) { switch (type) { case types.minus: controller.speed -= amount; break; case types.sum: controller.speed += amount; break; case types.set: controller.speed = amount; break; default: Debug.LogError(string.Format( "[handler_speed] no hay definicion para el type: '{0}'", type)); throw new System.NotImplementedException(); } }
public override void action(Controller_motor controller) { controller.recycle(); }
public virtual void action(Controller_motor controller_motor) { throw new System.NotImplementedException(); }