예제 #1
0
 // Use this for initialization
 private void Start()
 {
     cam          = GameObject.Find("Main Camera").GetComponent <Camera>();
     textBox      = GameObject.Find("CursorPos");  //for displaying current location
     pointPlotter = GetComponent <PointPlotter>(); //point plotter script
     positionText = textBox.GetComponentInChildren <Text>();
 }
예제 #2
0
 private void Start()
 {
     // Where we want to save and load to and from - persistant data path at Assets/...
     _FileLocation = Application.dataPath;
     //_FileName = "SaveData.xml";
     graphData = GameObject.Find("Cursor").GetComponent <PointPlotter>();
     // we need soemthing to store the information into
     vitalContainerData = new VitalContainer();
     drugContainerData  = new DrugContainer();
     uiManager          = GetComponent <UIManager>();
     PopulateGraphFields();
 }