示例#1
0
    void Start()
    {
        splash     = GameObject.Find("Splash");
        score      = GameObject.Find("Score");
        directions = GameObject.Find("Directions");

        highScores = HighScoreManager.s_instance.highScores;

        FormatScores(highScores.dailyScores, dailyScores);
        FormatScores(highScores.weeklyScores, weeklyScores);
        FormatScores(highScores.monthlyScores, monthlyScores);

        dailyScores.GetComponent <Renderer>().sortingOrder   = 5;
        weeklyScores.GetComponent <Renderer>().sortingOrder  = 5;
        monthlyScores.GetComponent <Renderer>().sortingOrder = 5;

        GameObject.Find("Daily Title").GetComponent <Renderer>().sortingOrder   = 5;
        GameObject.Find("Weekly Title").GetComponent <Renderer>().sortingOrder  = 5;
        GameObject.Find("Monthly Title").GetComponent <Renderer>().sortingOrder = 5;

        score.SetActive(false);

        state = State.Splash;
        //directions.SetActive(false);
    }
示例#2
0
 void Awake()
 {
     highScores = HighScoreXML.Load <HighScoreXML>();
     InvokeRepeating("UpdateScores", 0f, 300f);
     s_instance = this;
 }
 private void Start()
 {
     highScoreXml = new HighScoreXML();
     highScore    = highScoreXml.load();
 }
 private void Start()
 {
     highScoreXml   = new HighScoreXML();
     highScore.text = "Highscore: " + highScoreXml.load().ToString();
 }