示例#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();
    }