TO SQUASH: Added ooze ball halt logic.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user