Пример #1
0
 void Start()
 {
     GlobalEventManager.TriggerEvent(MapGlobalEvents.OnMapSendTransform, new ParamsObject(transform));
 }
Пример #2
0
 private void OnUpdateCurrentHealth(ParamsObject paramsObj)
 {
     GlobalEventManager.TriggerEvent(PlayerGlobalEvents.OnPlayerUpdateCurrentHealth, paramsObj);
 }
Пример #3
0
 private void OnUpdateMaxAmmo(ParamsObject paramsObj)
 {
     GlobalEventManager.TriggerEvent(PlayerGlobalEvents.OnPlayerUpdateMaxAmmo, paramsObj);
 }
Пример #4
0
 void Start()
 {
     GlobalEventManager.TriggerEvent(PlayerGlobalEvents.OnPlayerSendTransform, new ParamsObject(transform));
     GlobalEventManager.TriggerEvent(PlayerGlobalEvents.OnPlayerSendRigidbody, new ParamsObject(GetComponent <Rigidbody2D>()));
 }