Exemplo n.º 1
0
    /// <summary>
    /// This function called when player moved.
    /// </summary>
    private void OnMoved()
    {
        bomb.DecreaseCounter();

        if (bomb.Counter <= 0)
        {
            Exploded?.Invoke();
            GameManager.Instance.GameOver(1);
        }
    }