September 2010
Beginner
384 pages
8h 49m
English
There are a few changes we should make to the HeroShip Script (formerly the Character Script) to suit our new game. Let's do it:
else if condition handling the steins. Get rid of everything in this snippet in bold:if(col.gameObject.tag == "bomb")
{
audio.PlayOneShot(explosionSound);
Instantiate(explosion, col.gameObject.transform.position, Quaternion.identity);
}
else if (col.gameObject.tag == "stein") {
animation.Play("catch"); // Ima catch that stein!
}
if(lastX != transform.position.x) { Shoot ...Read now
Unlock full access