Beispiel #1
0
    public override void Fire()
    {
        var bombObject     = Instantiate(bomb, transform.position, Quaternion.identity);
        var bombController = bombObject.GetComponent <BombController>();

        bombController.Init(velocity);
        if (displayManager != null)
        {
            PickUpManager.Remove(Constants.BombPickUpName, 1);
            displayManager.UpdateText();
        }
        count--;
    }