Пример #1
0
    private void RespondTo_FlawedProjectile_CollidedWithHero_Event()
    {
        // Make hero react to flawed projectile collision
        heroManager.ReactTo_FlawedProjectile_Collision();

        // Deactivate input denier
        bossManager.DeactivateInputDenier();

        // Deactivate boss's firing area
        bossManager.DeactivateFiringArea();

        // Allow player input
        heroManager.AllowPlayerJump();

        // Fire event: Hero attacked
        HeroAttacked?.Invoke();
    }