Пример #1
0
    void Awake()
    {
        //请记分员
        scorekeeper = Scorekeeper.getInstance();
        scorekeeper.sceneController = this;
        //请patrol工厂
        patrolFactory = PatrolFactory.getInstance();
        patrolFactory.sceneController = this;
        //导演
        SSDirector director = SSDirector.getInstance();

        director.setFPS(60);
        director.currentSceneController = this;
        director.currentSceneController.LoadResources();
    }