Exemplo n.º 1
0
    //同步指定类型的设备信息
    public void SyncDeviceInfoByDeviceType(DeviceType deviceType, PlayerActor playerActor)
    {
        DeviceMgr mgr = m_deviceMgrDict[deviceType];

        if (mgr != null)
        {
            mgr.SyncDeviceInfo(playerActor);
        }
    }
Exemplo n.º 2
0
    //同步所有设备信息
    public void SyncDeviceInfo(PlayerActor playerActor)
    {
        var enumerator = m_deviceMgrDict.GetEnumerator();

        while (enumerator.MoveNext())
        {
            DeviceMgr mgr = enumerator.Current.Value;
            if (mgr != null)
            {
                mgr.SyncDeviceInfo(playerActor);
            }
        }
        enumerator.Dispose();
    }