示例#1
0
    // Use this for initialization
    void Start()
    {
        DontDestroyOnLoad(this);         // want to keep this between scenes

        pss = UIHelp.getAccessTo <PlayerScoresScript>("PlayerScores");
        if (pss == null)
        {
            Instantiate(playersScoresObj);
            Debug.Log("Instantiated PlayerScoresObj");
            pss = UIHelp.getAccessTo <PlayerScoresScript>("PlayerScores");
        }

        // set defaults
        difficulty  = 0;
        levelSize   = 0;
        movingWalls = false;
    }
示例#2
0
 // Use this for initialization
 void Start()
 {
     pss = UIHelp.getAccessTo <PlayerScoresScript>("PlayerScores");
     TellScores();
 }
示例#3
0
 // Use this for initialization
 void Start()
 {
     pss = UIHelp.getAccessTo <PlayerScoresScript>("PlayerScores");
     pss.SetupStoredScores();
 }