Ejemplo n.º 1
0
 void Start()
 {
     currentLevel = 1;
     if (dataFileName.EndsWith(".xml"))
     {
         path     = Application.dataPath + "/" + dataFileName;
         spawnXml = SpawnScript.Load(path);
     }
     elapsedTime    = 0.0f;
     nodeCounter    = 0;
     previousBounty = GameObject.FindGameObjectWithTag("Player").GetComponent <BountyScore>().currentBounty;
 }