B2LNJNFTE27FCZUPR4YTVTFERSRYIUEF4L27NDAKNRPMAJY7KKNAC
4JF64OZ2FPMTXL5XV3Z6HCEKKGCLXPLMNV3YCNX35RL5CXL42VNQC
RJXFDWT7OWTX3DQ7SBJFK6M66AQ2LGGIO32QD6G7VTJJS7U2R7XQC
P5O6MKCMZL3DK7ZO5SBWTCHOQB6O2MZA5VPSCQX6X4LJQVOWYV7AC
DTKCWM4J7PFNWAAES3RZHQGDA6PTDNX4TZVOXAKF5V7LCZBI3XUAC
FQZF2IY4T2F7KEVSHMFID35WNAU55CRRDF6XEXZB7PYZH26UGYPQC
HDXZWK64UDKEV5JBETQK6KMT5RXW5XPDU3YY4HLBCGP5XA6727BQC
CD5FF75KTOBTMVMTMCKMR6F5DFKOF26I5K43ITNHGBI3ZAZHA4RAC
HXTSBPAP75A7EC4RKWYQMVPPHPNZFPHUORBZWDHGEB6MPAGI7G7AC
System.Type resourceLocation = typeof((TResource, TLocation));
if (!ResourceCounter.TryGetValue(resourceLocation, out var value)) {
value = (Unit<TUnit>)0;
ResourceCounter.Add(resourceLocation, value);
}
Debug.Log($"{nameof(GetResource)} ({typeof(TResource).Name},{typeof(TLocation).Name}) = {value}");
return (Unit<TUnit>)value;
System.Type key = typeof((TResource, TRegister));
var value = (Unit<TUnit>)_resourceRegistry.GetValueOrDefault(key);
Debug.Log($"{nameof(GetResource)} ({typeof(TResource).Name},{typeof(TRegister).Name}) = {value}");
return value;
System.Type resourceLocation = typeof((TResource, TLocation));
ResourceCounter[resourceLocation] = value;
Debug.Log($"{nameof(SetResource)} ({typeof(TResource).Name},{typeof(TLocation).Name}) = {ResourceCounter[resourceLocation]}");
System.Type key = typeof((TResource, TRegister));
var newValue = (Unit<TUnit>)(_resourceRegistry[key] = value);
Debug.Log($"{nameof(SetResource)} ({typeof(TResource).Name},{typeof(TRegister).Name}) = {newValue}");
return newValue;