Ejemplo n.º 1
0
    protected bool CheckNotAction(MapPoint plcurrent)
    {
        bool result = false;

        //距離が一定以上あったらアクションさせない
        if (CurrentPoint.DistanceAbs(plcurrent) > 6)
        {
            result = true;
        }
        //消えているときはアクションさせない
        else if (ThisDisplayObject.activeInHierarchy == false)
        {
            result = true;
        }
        //消えているときはアクションさせない
        else if (IsActive == false)
        {
            result = true;
        }
        return(result);
    }