Esempio n. 1
0
 void Awake()
 {
     score = 0;
     if (instance == null)
     {
         instance = this;
     }
     SetHighScore();
 }
    private void Awake()
    {
        Director director = Director.getInstance();

        director.currentSceneControl = this;
        ufoNumber = 10;
        this.gameObject.AddComponent <ScoreRuler>();
        this.gameObject.AddComponent <UFOFactory>();
        scoreRuler = Singleton <ScoreRuler> .Instance;
        director.currentSceneControl.LoadResources();
    }