Beispiel #1
0
 public static void moveToStart()
 {
     if (startPos != null)
     {
         userTracker ut = GameObject.Find("User").GetComponent <userTracker>();
         ut.moveCam(startPos, Vector3.zero);
     }
 }
Beispiel #2
0
 private void OnMouseDown()
 {
     if (readFile.initDone)
     {
         canvas.enabled                = true;
         packageViewEnabled            = true;
         PackageEdge.EdgeViewEnabled   = false;
         edgepack1.text                = "";
         edgepack2.text                = "";
         packageNameHolder.text        = this.packageName;
         readFile.colourIndicator.text = "Instances per Clone Class";
         readFile.maxCloneHolder.text  = readFile.maxLocs.ToString();
         spawnClasses(this.transform.position);
         user.moveCam(this.transform.position - new Vector3(0, ymult * Mathf.Sqrt(this.classes.Count) + 1, 0),
                      this.transform.position - new Vector3(0, ymult * Mathf.Sqrt(this.classes.Count) + 2, 0));
     }
 }