Ejemplo n.º 1
0
    public IGC_UserGroup ApplyAccesGroup(IGC_UserGroup group)
    {
        if (!accessGroups.Contains(group))
        {
            accessGroups.Add(group);

            if (virtualSystem.networkReady)
            {
                virtualSystem.GetComponent <NetworkView>().RPC("AddAccessGroupRPC", RPCMode.Others, this.path, group.name);
            }

            return(group);
        }
        return(null);
    }
Ejemplo n.º 2
0
    public void Admin(bool tf)
    {
        admin = tf;

        if (virtualSystem.networkReady)
        {
            virtualSystem.GetComponent <NetworkView>().RPC("UserAdminStatusRPC", RPCMode.Others, this.name, tf);
        }
    }