void Start() { GlobalEventManager.TriggerEvent(MapGlobalEvents.OnMapSendTransform, new ParamsObject(transform)); }
private void OnUpdateCurrentHealth(ParamsObject paramsObj) { GlobalEventManager.TriggerEvent(PlayerGlobalEvents.OnPlayerUpdateCurrentHealth, paramsObj); }
private void OnUpdateMaxAmmo(ParamsObject paramsObj) { GlobalEventManager.TriggerEvent(PlayerGlobalEvents.OnPlayerUpdateMaxAmmo, paramsObj); }
void Start() { GlobalEventManager.TriggerEvent(PlayerGlobalEvents.OnPlayerSendTransform, new ParamsObject(transform)); GlobalEventManager.TriggerEvent(PlayerGlobalEvents.OnPlayerSendRigidbody, new ParamsObject(GetComponent <Rigidbody2D>())); }