Beispiel #1
0
 void Start()
 {
     movieObject     = GameObject.Find("GameManager").GetComponent <GameManager>().movieObject;
     gameManager     = GameObject.Find("GameManager").GetComponent <GameManager>();
     spawnObjectList = new List <string>();
     videoData       = gameManager.videoData;
 }
 void Awake()
 {
     if (XMLFileName != null)
     {
         parser.LoadXML(XMLFileName);
         objectData = parser.ParseMarkerXML();
         videoData  = parser.ParseVideoXML();
     }
     outsideCameraObject = new Dictionary <string, GameObject>();
     spawningObject      = new List <MarkerXMLWrapper>();
 }
Beispiel #3
0
 public static Vector2 GetUV(VideoXMLWrapper video, int pos_x, int pos_y)
 {
     return(new Vector2((float)pos_x / (float)video.Width, (float)(video.Height - pos_y) / (float)video.Height));
 }