예제 #1
0
    // Use this for initialization
    void Start()
    {
        SaveDataManager = GameObject.Find( "SaveDataManager" ).GetComponent<SaveDataManager>();
        TimeText = GameObject.Find( "TimeText" ).GetComponent<Text>();
        CurrentValText = GameObject.Find( "CurrentValText" ).GetComponent<Text>();

        CurrentValText_Subscription = GameObject.Find( "CurrentValText_Subscription" ).GetComponent<Text>();
        CurrentValText_Subscription.text = GetCurrentValTextSubscription( SaveDataManager.GetGameMode() );

        TimeText_Subscription = GameObject.Find( "TimeText_Subscription" ).GetComponent<Text>();
        TimeText_Subscription.text = GetTimeTextSubscription( SaveDataManager.GetGameMode() );

        SaveDataManager.InitCurrentScore();

        startTime = Time.time;
    }