Пример #1
0
    private void OnCollisionEnter(Collision collision)
    {
        ultimaflecha = collision.collider.GetComponent <SCR_Flecha>();
        ultimaflecha.Ataque();
        scr_gamemanger.PutMoreValueToScore(ultimaflecha.scoreExtra);
        Vector3 normal = collision.contacts[0].normal;

        SCR_SoundManager.sndinstance.PlaySound(SCR_SoundManager.Sonidos.impacto);
        ultimaflecha.Colision(normal);
        StartCoroutine(efecto());
    }