Script not being executed

hi guys my script instance is not created.

using UnityEngine;
using System.Collections;

public class Loader : MonoBehaviour {

public GameObject gameManager;

void Awake() {
	if (GameManager.instance = null) {
		Instantiate(gameManager);
	}
}

}


and this is the script I want to be called


using UnityEngine;
using System.Collections;

public class GameManager : MonoBehaviour {

public static GameManager instance = null;
public GameObject spawnPoint;
public GameObject[] enemies;
public int maxEnemiesOnScreen;
public int totalEnemies;
public int enemiesPerSpawn;

private int enemiesOnScreen = 0;

void Awake() {
	if (instance = null){
		instance = this;
	} else if(instance != this){
		Destroy(gameObject);

		DontDestroyOnLoad(gameObject);
	}
}
// Use this for initialization
void Start () {
	print("Called");
	spawnEnemy();
}

void spawnEnemy(){
	if (enemiesPerSpawn > 0 && enemiesOnScreen < totalEnemies){
		print("working");
		for (int i = 0; i < enemiesPerSpawn; i++){
			if(enemiesOnScreen < maxEnemiesOnScreen){
				GameObject newEnemy = Instantiate(enemies*) as GameObject;*
  •   			newEnemy.transform.position = spawnPoint.transform.position;*
    
  •   			enemiesOnScreen +=1;*
    
  •   		}*
    
  •   	}*
    
  •   }*
    
  • }*
    }
    ***************************************************************************************
    the first script is attached to the main camera

From what i can understand with the information provided, i think you already have a Game manger(Gameobject with GameManager scrip) in the scene. I get the feeling you have Dragged the Gamemanger object from the scene into the Loader script on the camera. If you have done this, what you want to do is to save the GamemangerObject as a prefab(Drag gameobject from scene into a folder) then drag the prefab onto the public field on the camera, this is how most people will use instantiate.
Other then that the best tip i can give you for situations like this where you except something to happen but i dosent is to use Debug.log, Put it in all the if’s and see what is happening because i think you script is working.