void OnTriggerEnter(Collider col) { if (CollidePlayer(col)) { CoconutThrower.CanThrow(); CoconutWin.CheckAndHints(); } }
IEnumerator targetHit() { iAudio.PlayOneShot(hitSound); targetRoot.Play("down"); beenHit = true; CoconutWin.IncrTargets(); yield return(new WaitForSeconds(resetTime)); iAudio.PlayOneShot(resetSound); targetRoot.Play("up"); beenHit = false; CoconutWin.DecrTargets(); }