Fixed some collision issues with the gem and pick up issues with the spray bottle
This commit is contained in:
@@ -591,8 +591,12 @@ PolygonCollider2D:
|
||||
- {x: -0.96, y: 0.03}
|
||||
- {x: -0.71, y: 0.049999997}
|
||||
- {x: -0.761466, y: -0.4145093}
|
||||
- {x: -0.48282623, y: 0.1463809}
|
||||
- {x: -0.35, y: 0.17999999}
|
||||
- {x: -0.13568974, y: 0.7300887}
|
||||
- {x: -0.1828394, y: 0.10487938}
|
||||
- {x: -0.2330389, y: -0.1875515}
|
||||
- {x: -0.57791233, y: -0.04764223}
|
||||
- {x: -0.2898903, y: -0.4308114}
|
||||
- {x: 0.29398346, y: -0.33216858}
|
||||
- {x: 0.14999999, y: 0.84999996}
|
||||
@@ -600,8 +604,11 @@ PolygonCollider2D:
|
||||
- {x: 0.19, y: 0.53}
|
||||
- {x: 0.39, y: 0.29999998}
|
||||
- {x: 0.5006342, y: -0.30840397}
|
||||
- {x: 0.64, y: 0.14999999}
|
||||
- {x: 0.8028927, y: -0.18389893}
|
||||
- {x: 0.6671772, y: -0.040239334}
|
||||
- {x: 0.81, y: 0.099999994}
|
||||
- {x: 0.98599625, y: -0.00033330917}
|
||||
- {x: 0.83942986, y: -0.12882042}
|
||||
- {x: 0.7198019, y: -0.33409262}
|
||||
- {x: 1.17, y: -0.12}
|
||||
- {x: 1.18, y: -0.34}
|
||||
|
||||
@@ -17,7 +17,7 @@ public class GameScript : MonoBehaviour
|
||||
{
|
||||
clicked = false;
|
||||
|
||||
float sizeChange = Random.Range(1f, 2f);
|
||||
float sizeChange = Random.Range(0.75f, 1.5f);
|
||||
|
||||
Object.GetComponent<SpriteRenderer>().sprite =
|
||||
ObjectSprites[Random.Range(0, ObjectSprites.Length)];
|
||||
@@ -25,7 +25,10 @@ public class GameScript : MonoBehaviour
|
||||
Object.AddComponent<BoxCollider2D>();
|
||||
Object.GetComponent<BoxCollider2D>().size *= sizeChange;
|
||||
|
||||
Vector3 boundary = Object.GetComponent<BoxCollider2D>().size * 0.3f;
|
||||
Vector3 boundary = Object.GetComponent<BoxCollider2D>().size * 0.45f;
|
||||
|
||||
Destroy(Object.GetComponent<BoxCollider2D>());
|
||||
Object.AddComponent<PolygonCollider2D>();
|
||||
|
||||
for(int i = 0; i < Random.Range(10, 30); i++)
|
||||
{
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 4.9 KiB |
Binary file not shown.
@@ -6,6 +6,7 @@ TagManager:
|
||||
tags:
|
||||
- Object
|
||||
- Item
|
||||
- Dirt
|
||||
layers:
|
||||
- Default
|
||||
- TransparentFX
|
||||
|
||||
Reference in New Issue
Block a user