void OnMouseDown() { if (manager.getSceneState() != "Placing") { anim.SetInteger("PigState", 1); if (!audioScript.pigAudio.isPlaying) { audioScript.MakePigSound(); } } else { anim.SetInteger("PigState", 2); } }