コード例 #1
0
    // Update is called once per frame
    void Update()
    {
        if (RCC.pnce.Char.isJumping || RCC.pnce.Char.isFalling)
        {
            checkDirectionJump();
        }
        else
        {
            checkDirection();
        }


        if (charScript.canMove && pnce.CheckLevelRot())
        {
            if (!RCC.attachRight && !RCC.attachLeft && !RCC.attachRightAny && !RCC.attachLeftAny && !RCC.attachRightBox && !RCC.attachLeftBox)
            {
                checkMovement(false, false);
                print("1 in");
            }
            if (RCC.attachRight || RCC.attachRightAny || RCC.attachRightBox)
            {
                checkMovement(false, true);
            }
            if (RCC.attachLeft || RCC.attachLeftAny || RCC.attachLeftBox)
            {
                checkMovement(true, false);
            }
        }
    }