void Awake() { ads = AdsSingleton.GetInstance; //ads = AdsSingleton.GetInstance; titlePanel = GameObject.FindWithTag(Tags.UITitlePanel).GetComponent <NGUIPanel>(); radyPanel = GameObject.FindWithTag(Tags.UIRadyPanel).GetComponent <NGUIPanel>(); playPanel = GameObject.FindWithTag(Tags.UIPlayPanel).GetComponent <NGUIPanel>(); gameOverPanel = GameObject.FindWithTag(Tags.UIGameOverPanel).GetComponent <NGUIPanel>(); screenFader = GameObject.FindWithTag(Tags.ScreenFader).GetComponent <ScreenFader>(); if (DebugManager.FunctionLog) { Debug.Log(this.ToString() + " Awake"); } gameData = GameDataSingleton.Instance; InitializeDelegateLists(); InitializeButtonDelegate(); screenFader.SetStateBlack(); sequence = gameData.StartSeq; if (isTutorial) { sequence = GameSequence.Restart; } }
public event EventReturnObject LoadSaveGameListingEvent; //GSC data was loaded/attempted #endregion #region UNITY METHODS /// <summary> /// Unity AWAKE /// </summary> /// <remarks> /// <para> /// Set up the GDS. /// Set up the file paths to the save games and the MDS data store /// </para> /// </remarks> void Awake() { gds = GameDataSingleton.Instance; //Hardcoded. These should not change GSCFilePath = Application.persistentDataPath + "/SaveGames/"; MDSFilePath = Application.dataPath + "/Data/"; }
public event EventReturnObject LoadSaveGameListingEvent; //GSC data was loaded/attempted #endregion #region UNITY METHODS /// <summary> /// Unity AWAKE /// </summary> /// <remarks> /// <para> /// Set up the GDS. /// Set up the file paths to the save games and the MDS data store /// </para> /// </remarks> void Awake() { gds = GameDataSingleton.Instance; //Hardcoded. These should not change GSCFilePath = Application.persistentDataPath + "/SaveGames/"; MDSFilePath = Application.dataPath + "/Data/"; }
// Use this for initialization void Start() { GameDataSingleton gds = GameDataSingleton.Instance; if (gds.SDS.Stations.Count == 0) { //We haven't loaded anything! GameObject dfNoDataSprite = GameObject.Find("UI_Sprite_NoData"); if (dfNoDataSprite != null) { dfSprite dfs = dfNoDataSprite.GetComponent <dfSprite>(); dfs.IsVisible = true; } } }
void Awake() { gds = GameDataSingleton.Instance; }
void Awake() { gds = GameDataSingleton.Instance; }