Beispiel #1
0
 public string FindLevelFile(string identifier)
 {
     SandboxLevels.LevelData levelData = this.m_sandboxLevels.GetLevelData(identifier);
     if (levelData != null)
     {
         return(levelData.SceneName);
     }
     return("UndefinedSandboxFile");
 }
Beispiel #2
0
 private void Awake()
 {
     StarBox.onCollected        += this.BoxCollected;
     PartBox.onCollected        += this.BoxCollected;
     this.starsCounterText       = base.transform.Find("AnimationNode/StarsCounter").GetComponent <TextMesh>();
     this.starsCounterTextShadow = base.transform.Find("AnimationNode/StarsCounter/StarsCounterShadow").GetComponent <TextMesh>();
     if (WPFMonoBehaviour.levelManager.m_sandbox)
     {
         SandboxLevels.LevelData levelData = WPFMonoBehaviour.gameData.m_sandboxLevels.GetLevelData(Singleton <GameManager> .Instance.CurrentLevelIdentifier);
         this.maxStars = ((levelData == null) ? "20" : levelData.m_starBoxCount.ToString());
     }
     this.UpdateBoxCount();
 }