public static Stage3Manager CreateStage3Manager(GameObject parent, GameObject[] Obstacles, GameObject Objective, GameObject[] Powerups) { Stage3Manager stage3Manager = parent.AddComponent <Stage3Manager>(); stage3Manager.SetObstacles(Obstacles); stage3Manager.SetObjective(Objective); stage3Manager.SetPowerups(Powerups); return(stage3Manager); }
private void Awake() { if (instance == null) { instance = this; } else { Destroy(this.gameObject); } moleculeSets = new List <MoleculeSet>(); foreach (GameObject g in moleculeStrings) { moleculeSets.Add(new MoleculeSet(g)); } foreach (MoleculeSet m in moleculeSets) { ShadeMolecules(m, 1.5f); } }