Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public float left;
- public GameObject enemyLeft;
- void Start ()
- {
- enemyLeft= GameObject.Find("Enemy Left");
- }
- void Update()
- {
- if (transform.position.x <= left)
- {
- Destroy (enemyLeft);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement