Exemplo n.º 1
0
        private void ApplyDamage(int damage)
        {
//            OnDamaged?.Invoke(damage);
            ExampleEventBus.RaiseEvent("damage");
        }
Exemplo n.º 2
0
        private void Awake()
        {
//            Player.OnDamaged += ShowDamage;
            ExampleEventBus.SubscribeOnEvent("Damage", ShowDamage);
        }