MJB easter egg

This commit is contained in:
Gregory Campbell
2020-08-10 23:36:52 -04:00
parent 63cbf887d1
commit a9cafa0b4f
6 changed files with 105 additions and 0 deletions
+5
View File
@@ -7,6 +7,8 @@ public class BulletScript : MonoBehaviour
public AudioClip[] hit;
public Sprite secret;
private float speed;
private Rigidbody2D rb;
private ShakeScript shake;
@@ -20,6 +22,9 @@ public class BulletScript : MonoBehaviour
speed = Random.Range(3.0f, 8.0f);
shake = GameObject.Find("Shake Manager").GetComponent<ShakeScript>();
shake.CamShake();
if(Random.Range(0, 100) == 0) this.GetComponent<SpriteRenderer>().sprite = secret;
}
void FixedUpdate()