Exemplo n.º 1
0
    void OnMouseReleased(Vector3 dropPosition)
    {
        dropPosition.z = 0.0f;

        AudioManager.singleton.PlaySfx(massHit);
        GameObject holeSpawned = Instantiate(holePrefab, dropPosition, Quaternion.identity);

        bilge.AddHole(holeSpawned);

        Hole h = holeSpawned.GetComponent <Hole> ();

        h.bilge = bilge;
        h.OnCreateHole();
    }