void OnGUI() { if (a == null) { a = GameObject.FindObjectOfType <GraphHelp> (); } Repaint(); //Methods GraphDesign(); Axis(); Options(); Zoom(); }
void Start() { if (!isExperimentOver) { updateTexture = new Texture2D(size, size); // instantiate new texture updateTexture.filterMode = FilterMode.Point; texture = gameObject.GetComponent <SpriteRenderer>().sprite; h = GameObject.FindObjectOfType <GraphHelp>(); h.AddGraph("graphing", Color.red); // set up grapher Debug.Log("Trial No: " + ExperimentManager.Instance.numOfRun); p = new Population(populationMax, mutationRate, isPbx); // create population object } }