adding sprite renderer to the pickups

This commit is contained in:
Amaan Shawkath
2022-04-24 15:42:03 +01:00
parent 5dca823425
commit 555a86cfca
6 changed files with 226 additions and 219 deletions

View File

@@ -14,7 +14,7 @@ public class BulletFreezeRemove : Pickup
public override void OnPickup()
{
//hide renderer
GetComponent<MeshRenderer>().enabled = false;
GetComponent<SpriteRenderer>().enabled = false;
GetComponent<Collider>().enabled = false;
Debug.Log("Start thingy");
//find all particles in the scene and freeze them