Update EnemyReturn Script for New Handle on Pasty
This commit is contained in:
parent
1de99959ec
commit
5820b9c9bd
@ -83,7 +83,7 @@ public class EnemyReturn : Physics2DObject
|
|||||||
if (hasDroppableObject)
|
if (hasDroppableObject)
|
||||||
{
|
{
|
||||||
GameObject newDroppedObject = Instantiate<GameObject>(droppedObject);
|
GameObject newDroppedObject = Instantiate<GameObject>(droppedObject);
|
||||||
newDroppedObject.transform.position = new Vector2(Random.Range(0, 2) + this.transform.position.x, Random.Range(0, 2) + this.transform.position.y);
|
newDroppedObject.transform.position = new Vector2(this.transform.position.x, this.transform.position.y);
|
||||||
}
|
}
|
||||||
Destroy(gameObject);
|
Destroy(gameObject);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user