Exemple #1
0
    // Update is called once per frame
    void Update()
    {
        Vector3 move  = Controls.GetXY();
        var     actor = GetComponent <Actor>();

        actor.AddMovementInput(move, 1f);

        if (Controls.IsDown(EKey.Jump))
        {
            actor.TryJump();
        }
    }