Esempio n. 1
0
    void Loop(float dt)
    {
        if (enableDebug)
        {
            foreach (Hitbox hb in _hitBoxBounds)
            {
                _debugRenderer.AddDebugCollider(hb);
            }
            _debugRenderer.AddDebugCollider(players[0].hurtbox);
            _debugRenderer.AddDebugCollider(players[1].hurtbox);

            player1TB.Show();
            player2TB.Show();
            player1TB.RenderPlayerState(players[0]);
            player2TB.RenderPlayerState(players[1]);
        }
        else
        {
            player1TB.Hide();
            player2TB.Hide();
        }
    }