TO SQUASH: Added ooze ball halt logic.

This commit is contained in:
2026-08-04 02:10:52 -04:00
parent da1512731b
commit b3d28dd2c9
+13 -3
View File
@@ -75,7 +75,7 @@ public class OozeBall : MonoBehaviour
} }
} }
void Split() public void Split()
{ {
StartCoroutine(SplitCoroutine()); StartCoroutine(SplitCoroutine());
} }
@@ -99,9 +99,19 @@ public class OozeBall : MonoBehaviour
Destroy(gameObject); Destroy(gameObject);
} }
void Halt() public void Halt()
{ {
StartCoroutine(HaltCoroutine());
}
private IEnumerator HaltCoroutine()
{
spriteRenderer.enabled = false;
audioSource.PlayOneShot(stoppedSound); audioSource.PlayOneShot(stoppedSound);
// TODO: Implement the logic for transforming the OozeBall into a basic ball. spawner.SpawnBallOfType("BasicBall", transform.position);
yield return new WaitForSeconds(0.53f);
Destroy(gameObject);
} }
} }