Example #1
0
    public void requestNewTarget(ProtocolClient client, Action <Node, bool> callback)
    {
        available = new List <Node>();
        //virtualborder frissítése
        clearVirtualBorder();

        //a dinamikusan tiltott elemek kiszedése a virtualborder-ből
        HashSet <Node> dynamicBlocked = getDynamicUnwalkable(client, 2);
        HashSet <Node> targetRepels   = getOtherTargetRepels(client);

        foreach (Node n in virtualBorder)
        {
            if (!(dynamicBlocked.Contains(n) || targetRepels.Contains(n)))
            {
                available.Add(n);
            }
        }

        NewTargetManager.RequestTarget(client.transform.position, available, dynamicBlocked, callback);
    }
Example #2
0
 void Awake()
 {
     requestManager = GetComponent<NewTargetManager>();
 }
Example #3
0
 void Awake()
 {
     requestManager = GetComponent <NewTargetManager>();
 }
Example #4
0
 void Awake()
 {
     instance  = this;
     targeting = GetComponent <BFSNewTarget>();
 }
Example #5
0
 void Awake()
 {
     instance = this;
     targeting = GetComponent<BFSNewTarget>();
 }