Exemplo n.º 1
0
    // --v-- Event Handler --v--

    private void HandleOnPlayerOnDestruction(EntityDestructionContext context)
    {
        if (context == EntityDestructionContext.DESTROYED_BY_DAMAGE)
        {
            OnGameIsOver?.Invoke();
            StopGame(_shouldPlayOutro);
        }
    }
Exemplo n.º 2
0
    // --v-- Event Handler --v--

    private void HandleEnemyOnDestruction(EntityDestructionContext context)
    {
        RemoveEnemy();
    }