示例#1
0
    public void OnPointerDown(PointerEventData pointer)
    {
        if (knight.grounded)
        {
            dJump = false;
        }

        if (knight.grounded && !knight.isDead)
        {
            knight.jumping();
            IsPressed();
        }

        if (!dJump && !knight.grounded && !knight.isDead)
        {
            knight.jumping();
            dJump = true;
            IsPressed();
        }
    }
示例#2
0
 public void jumping()
 {
     knight.jumping();
 }