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); }
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); }
void RegisterAccessories() { CAccessoryInterface.RegisterPrefab(CAccessoryInterface.EType.Alarm, ENetworkPrefab.Alarm); }
public List<GameObject> FindAccessoriesByType(CAccessoryInterface.EType _eAccessoryType) { if (!m_mAccessories.ContainsKey(_eAccessoryType)) { return (null); } return (m_mAccessories[_eAccessoryType]); }