Exemplo n.º 1
0
 public static void moveToStart()
 {
     if (startPos != null)
     {
         userTracker ut = GameObject.Find("User").GetComponent <userTracker>();
         ut.moveCam(startPos, Vector3.zero);
     }
 }
Exemplo n.º 2
0
 private void Start()
 {
     user              = GameObject.Find("User").GetComponent <userTracker>();
     packageView       = GameObject.Find("PackageView");
     canvas            = packageView.GetComponent <Canvas>();
     packageNameHolder = GameObject.Find("packageNameHolder").GetComponent <Text>();
     edgepack1         = GameObject.Find("EdgePack1").GetComponent <Text>();
     edgepack2         = GameObject.Find("EdgePack2").GetComponent <Text>();
 }