コード例 #1
0
ファイル: FBWorld_Logic.cs プロジェクト: CookiRui/script
    public void beginCheckShootBall(FixVector2 direction)
    {
        FBActor actor = m_ball.owner;

        if (actor == null)
        {
            return;
        }
        if (actor.passBallPressed)
        {
            return;
        }

        FixVector2 destDirection = FixVector2.kZero;

        positiveDoorSide = getDoorSide(actor, direction, out destDirection);

        destDirection = getClampedDirection(actor.direction, destDirection, actor.configuration.shootBallAngleTorelance);

        actor.doShootBall(destDirection);
    }