void Update()
    {
        trans.position += (Vector3)input.axis * speed;

        AccelCheck();
        BreakeCheck();
        Control();
        DestroyIcon();
        InputPad.InputDownData(ref input, PlayerNum);
        input.axis = InputPad.Axis(PlayerNum);
        window.ID  = icon.selectNo;
        PostionLimit();
    }
Esempio n. 2
0
 // プレイヤー指定 ---------------------------------------------------------
 public static void InputData(ref InputData outData, int aNum = 1)
 {
     if (outData == null)
     {
         outData = new InputData();
     }
     outData.axis  = InputPad.Axis(aNum);
     outData.accel = InputPad.Accel(aNum);
     outData.brake = InputPad.Brake(aNum);
     outData.glide = InputPad.Glide(aNum);
     outData.drift = InputPad.Drift(aNum);
     outData.menu  = InputPad.Menu(aNum);
 }