示例#1
0
 void _OnUnspawnUser(Regulus.Project.Crystal.IUser user)
 {
     _Application.Command.Unregister("Lookup" + user.GetHashCode());
     _Users.Remove(user);
 }
示例#2
0
    private void _OnSpawnUser(Regulus.Project.Crystal.IUser user)
    {
        _Users.Add(user);

        _Application.Command.Register("Lookup"  + user.GetHashCode() ,  () =>
        {
            _LookupUser(user);
        });
    }