Update Increase Pastie Spawn Range & Bullet Delete
This commit is contained in:
parent
aeae818f80
commit
54446d676b
@ -47,7 +47,7 @@ public class TimedSelfDestructWithTimerOrShootToReturn : MonoBehaviour
|
||||
if (objectTag == "Bullet")
|
||||
{
|
||||
GameObject.Find("CollisionDetector").GetComponent<ItemStash>().AddDroppedItemAmountByOne();
|
||||
Destroy(other);
|
||||
Destroy(other.gameObject);
|
||||
Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ public class EnemyReturn : Physics2DObject
|
||||
if (hasDroppableObject)
|
||||
{
|
||||
GameObject newDroppedObject = Instantiate<GameObject>(droppedObject);
|
||||
newDroppedObject.transform.position = new Vector2(Random.Range(0, 1) + this.transform.position.x, Random.Range(0, 1) + this.transform.position.y);
|
||||
newDroppedObject.transform.position = new Vector2(Random.Range(0, 2) + this.transform.position.x, Random.Range(0, 2) + this.transform.position.y);
|
||||
}
|
||||
Destroy(gameObject);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user