예제 #1
0
파일: Mace.cs 프로젝트: darkbibni/Ludum40
    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();
    }