Пример #1
0
    public void RegisterAccessory(CAccessoryInterface _cAccessoryInterface)
    {
        if (!m_mAccessories.ContainsKey(_cAccessoryInterface.AccessoryType))
        {
            m_mAccessories.Add(_cAccessoryInterface.AccessoryType, new List <GameObject>());
        }

        m_mAccessories[_cAccessoryInterface.AccessoryType].Add(_cAccessoryInterface.gameObject);
    }
Пример #2
0
    public void RegisterAccessory(CAccessoryInterface _cAccessoryInterface)
    {
        if (!m_mAccessories.ContainsKey(_cAccessoryInterface.AccessoryType))
        {
            m_mAccessories.Add(_cAccessoryInterface.AccessoryType, new List<GameObject>());
        }

        m_mAccessories[_cAccessoryInterface.AccessoryType].Add(_cAccessoryInterface.gameObject);
    }
Пример #3
0
 void RegisterAccessories()
 {
     CAccessoryInterface.RegisterPrefab(CAccessoryInterface.EType.Alarm, ENetworkPrefab.Alarm);
 }
Пример #4
0
    public List<GameObject> FindAccessoriesByType(CAccessoryInterface.EType _eAccessoryType)
    {
        if (!m_mAccessories.ContainsKey(_eAccessoryType))
        {
            return (null);
        }

        return (m_mAccessories[_eAccessoryType]);
    }