void Start() { variables = manager.variables; maxSphereLifetime = variables.totalTime / variables.timeBetweenActivation * variables.activeTime * 2f; tester = manager.tester; foreach (GameObject go in spheres) { go.GetComponent <Sphere>().Initialize(this, variables); } StartCoroutine(GameLoop()); }
public void Initialize(WhacASphere whacASphere, WhacASphereVariables variables) { this.whacASphere = whacASphere; this.variables = variables; }