コード例 #1
0
 public void Awake()
 {
     controls = new InputSys();
     controls.Enable();
     controls.Player.Move.started   += ctx => Move(ctx);
     controls.Player.Move.started   += ctx => Move(ctx);
     controls.Player.Move.performed += ctx => Move(ctx);
     controls.Player.Move.canceled  += ctx => MoveEnd();
 }
コード例 #2
0
ファイル: Flight.cs プロジェクト: mitsukaki/jade
    private void Awake()
    {
        controls = new InputSys();
        controls.Enable();

        controls.Player.Move.started   += ctx => Move(ctx);
        controls.Player.Move.performed += ctx => Move(ctx);
        controls.Player.Move.canceled  += ctx => MoveEnd();

        controls.Player.Accelerate.started   += ctx => Accel(ctx);
        controls.Player.Accelerate.performed += ctx => Accel(ctx);
        controls.Player.Accelerate.canceled  += ctx => AccelEnd();
    }
コード例 #3
0
 public void Awake()
 {
     controls = new InputSys();
     controls.Enable();
     controls.Player.Move.performed += ctx => Rotate(ctx);
 }
コード例 #4
0
    //private Joystick mRightJoystick;

    public override void SysInitial()
    {
        base.SysInitial();
        m_cInstance = this;
    }