Ejemplo n.º 1
0
    void HalfWayThere()
    {
        audioController.PlaySadMusic();
        GameObject  textPopup    = Instantiate(textPopupComponent, playerControl.transform.position + new Vector3(0.5f, 0.5f, 0), Quaternion.identity);
        DamagePopup textPopupObj = textPopup.GetComponent <DamagePopup>();

        textPopupObj.SetUpBenDover();
        Destroy(textPopup, 4f);

        if (benDoverWeapon != null)
        {
            benDoverWeapon.numProjectiles *= 2;
            benDoverWeapon.sizeIncrease   += 1.2f;
        }

        benDoverDialogState = BenDoverDialogState.HALF_WAY;
    }