public void RegisterCore(GunCore gunCore) { if (m_CoreList.Exists(core => core.GetType() == gunCore.GetType())) { throw new Exception("같은 타입의 코어는 장착할 수 없습니다."); } m_CoreList.Add(gunCore); }
public void RegisterCore(GunCore core) => m_CorePool.RegisterCore(core);