Exemple #1
0
    public override bool TestTarget(Construction.Target target)
    {
        if (!base.TestTarget(target))
        {
            return(false);
        }
        Socket_Specific_Female socket = target.socket as Socket_Specific_Female;

        if ((PrefabAttribute)socket == (PrefabAttribute)null)
        {
            return(false);
        }
        return(socket.CanAccept(this));
    }
    public override bool TestTarget(Construction.Target target)
    {
        if (!base.TestTarget(target))
        {
            return(false);
        }
        Socket_Specific_Female socketSpecificFemale = target.socket as Socket_Specific_Female;

        if (socketSpecificFemale == null)
        {
            return(false);
        }
        return(socketSpecificFemale.CanAccept(this));
    }