// Update is called once per frame void Update() { if (Input.GetKeyDown("1") && activated[1] == 1) { shapePlayer = 1; sr.sprite = currentColor[1]; Invoke("becomeBlob", 2); sm.setShapeUsing(1); } if (Input.GetKeyDown("2") && activated[2] == 1) { shapePlayer = 2; sr.sprite = currentColor[2]; Invoke("becomeBlob", 2); sm.setShapeUsing(2); } if (Input.GetKeyDown("3") && activated[3] == 1) { shapePlayer = 3; sr.sprite = currentColor[3]; Invoke("becomeBlob", 2); sm.setShapeUsing(3); } if (Input.GetKeyDown("4") && activated[4] == 1) { shapePlayer = 4; sr.sprite = currentColor[4]; Invoke("becomeBlob", 2); sm.setShapeUsing(4); } if (Input.GetKeyDown("5") && activated[5] == 1) { shapePlayer = 5; sr.sprite = currentColor[5]; Invoke("becomeBlob", 2); sm.setShapeUsing(5); } }