added trick sounds
This commit is contained in:
@@ -39,6 +39,7 @@ public class TrickController : MonoBehaviour
|
||||
[SerializeField] private float throwControlLockTime = 0.35f;
|
||||
[SerializeField] private float wallCheckDistance = 0.1f;
|
||||
[SerializeField] private float wallAvoidDuration = 0.6f;
|
||||
[SerializeField] private AudioSource trickEatSound;
|
||||
|
||||
private Rigidbody2D body;
|
||||
private Transform target;
|
||||
@@ -254,6 +255,7 @@ public class TrickController : MonoBehaviour
|
||||
{
|
||||
target = null;
|
||||
}
|
||||
trickEatSound.Play();
|
||||
SpawnTrick(spawnPosition);
|
||||
nextConsumeTime = Time.time + consumeCooldown;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user