Exemple #1
0
    /// <summary>
    /// 测试使用函数,后面删除
    /// </summary>
    public void onCheckBallState()
    {
        if (ConstTable.DebugStateAction == 2)
        {
            if (fbWorld.ball.owner != null)
            {
                //自己停止Defend
                fbWorld.ball.owner.stopDefend();

                FBTeam  notHodlingBallTeam = (FBTeam)(3 - (int)fbWorld.ball.owner.team);
                FBActor actor = fbWorld.getActorByTeam(notHodlingBallTeam);
                if (actor != null && actor.checkMovingState())
                {
                    actor.startDefend(fbWorld.ball.owner);
                }
            }
            else
            {
            }
        }
    }