Exemplo n.º 1
0
    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;
        }
    }
Exemplo n.º 2
0
    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/";
    }
Exemplo n.º 3
0
    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/";
    }
Exemplo n.º 4
0
    // 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;
            }
        }
    }
Exemplo n.º 5
0
 void Awake()
 {
     gds = GameDataSingleton.Instance;
 }
Exemplo n.º 6
0
 void Awake()
 {
     gds = GameDataSingleton.Instance;
 }