// Use this for initialization void Start() { mc = GameObject.Find("MathiusEarthCam").GetComponent("MoveCamera")as MoveCamera; ps = GameObject.Find("MathiusEarthCam").GetComponent("PaulScore") as PaulScore; camera = GameObject.Find("MathiusEarthCam") as GameObject; mathius_cam = camera.GetComponent(typeof(Camera)) as Camera; delta = new Vector3(0.0f,0.0f,0.0f); anchor = new Vector3(0.0f,0.0f,0.0f); mathius = gameObject; }
void Start() { gameData = gameObject.transform.parent.GetComponent("PaulScore") as PaulScore; }
// Use this for initialization void Start() { equation = gameObject.GetComponentInChildren(typeof(TextMesh)) as TextMesh; equation.renderer.material.color = Color.magenta; answer = 0; //generateEquation(); createEquation(); ps = GameObject.Find ("MathiusEarthCam").GetComponent("PaulScore") as PaulScore; }