Пример #1
0
        private void ApplyDamage(int damage)
        {
//            OnDamaged?.Invoke(damage);
            ExampleEventBus.RaiseEvent("damage");
        }
Пример #2
0
        private void Awake()
        {
//            Player.OnDamaged += ShowDamage;
            ExampleEventBus.SubscribeOnEvent("Damage", ShowDamage);
        }