예제 #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>()));
 }