public override void FinishOrder()
    {
        base.FinishOrder();

        Formicant newFormicant = ObjectManager.CreateFormicant(_royalName, _delegation.DelegationRoyal.Position);

        // TODO Put in royal check??
        _targetDelegation.AcceptRoyal((Royal)newFormicant);
    }
Пример #2
0
    public Delegation CreateDelegation(Royal royal)
    {
        Delegation newDelegation = ObjectManager.CreateDelegation();

        if (newDelegation == null)
        {
            Debug.LogError("Dispatcher: Failed to instantiate new delegation");
            return(null);
        }
        newDelegation.transform.parent = delagations;
        newDelegation.AcceptRoyal(royal);

        return(newDelegation);
    }