mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
remove LocalizedToUpper lol
This commit is contained in:
parent
0792cc1024
commit
85a405b5f2
@ -13,7 +13,7 @@ public class RespawnHUDMarker : HUDDistanceMarker
|
||||
{
|
||||
_markerRadius = 0.2f;
|
||||
_markerTarget = transform;
|
||||
_markerLabel = QSBLocalization.Current.RespawnPlayer.LocalizedToUpper();
|
||||
_markerLabel = QSBLocalization.Current.RespawnPlayer.ToUpper(UIHelper.GetCurrentCultureInfo());
|
||||
_isReady = true;
|
||||
|
||||
base.InitCanvasMarker();
|
||||
|
@ -161,13 +161,13 @@ public static class Extensions
|
||||
public static void RaiseEvent<T>(this T instance, string eventName, params object[] args)
|
||||
{
|
||||
const BindingFlags flags = BindingFlags.Instance
|
||||
| BindingFlags.Static
|
||||
| BindingFlags.Public
|
||||
| BindingFlags.NonPublic
|
||||
| BindingFlags.DeclaredOnly;
|
||||
| BindingFlags.Static
|
||||
| BindingFlags.Public
|
||||
| BindingFlags.NonPublic
|
||||
| BindingFlags.DeclaredOnly;
|
||||
if (typeof(T)
|
||||
.GetField(eventName, flags)?
|
||||
.GetValue(instance) is not MulticastDelegate multiDelegate)
|
||||
.GetField(eventName, flags)?
|
||||
.GetValue(instance) is not MulticastDelegate multiDelegate)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -214,11 +214,5 @@ public static class Extensions
|
||||
}
|
||||
}
|
||||
|
||||
public static string LocalizedToUpper(this string orig)
|
||||
{
|
||||
var culture = UIHelper.GetCurrentCultureInfo();
|
||||
return culture.TextInfo.ToUpper(orig);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
Loading…
Reference in New Issue
Block a user