Exemplo n.º 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;
    }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     pss = UIHelp.getAccessTo <PlayerScoresScript>("PlayerScores");
     TellScores();
 }
Exemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     pss = UIHelp.getAccessTo <PlayerScoresScript>("PlayerScores");
     pss.SetupStoredScores();
 }