Reactivated Child doesn't move.

I`m working on a game where some enemies are inactive at begining and while player make progression they are reactivated.
All addition enemies are childs of empty GameObject called EnemyActivator2…8 because I couldn’t ractivate them.

Here’s a code that disable my additional enemy on start and reactivate it when player hits 200 points. This script is attached to Empty GameObject that is parrent. Only Enemy GameObject has Rigidbody2D.

   using UnityEngine;
    using System.Collections;
    
    public class EnemyActivatorController2 : MonoBehaviour {
    
    	// Use this for initialization
    	void Start () {
    		GameObject ActiveEnemy2 = GameObject.Find ("EnemyActivator2");
    		foreach (Transform child in ActiveEnemy2.transform) {
    						child.gameObject.SetActive (false);
    				}
    
    
    	}
    	
    	// Update is called once per frame
    	void Update () {
    		if (PlayerController.Points == 200) {
    			GameObject ActiveEnemy2 = GameObject.Find ("EnemyActivator2");
    			foreach (Transform child in ActiveEnemy2.transform) {
    				child.gameObject.SetActive (true);
    			} 
    		}
    	
    	}
    }

It working but my additional enemy spawn and doesn’t move anymore.

Here is enemy script:

using UnityEngine;
    using System.Collections;
    
    public class EnemyController2 : MonoBehaviour {
    
    	public float speed = -1;
    	private Transform spawnPoint;
    
    	// Use this for initialization
    	void Start () {
    		spawnPoint = GameObject.Find("SpawnPoint").transform;
    		rigidbody2D.velocity = new Vector2 (speed, 0);
    
    
    
    	}
    	
    	// Update is called once per frame
    	void Update () {
    	
    	}
    
    	void OnBecameInvisible()
    	{
    		if (Camera.main == null)
    						return;
    
    		float yMax = Camera.main.orthographicSize - 0.5f;
    		transform.position = new Vector3( spawnPoint.position.x,
    		                                 Random.Range (-yMax, yMax),
    		                                 transform.position.z );
    	}
    
    }

Any idea how to make he move again? Enemies just wander from left to right or vice versa and when move out from the screen they will spawn again. Please help me :slight_smile:

Problem Solved. Thanks Kobting! + for You mate!