示例#1
0
    void Start()
    {
        SSDirector director = SSDirector.GetInstance();

        arrow_factory = Singleton <ArrowFactory> .Instance;
        recorder      = Singleton <ScoreRecorder> .Instance;
        director.CurrentScenceController = this;
        action_manager = gameObject.AddComponent <ArrowFlyActionManager>() as ArrowFlyActionManager;
        LoadResources();
        CreateWind();
    }
示例#2
0
    void Start()
    {
        SSDirector director = SSDirector.GetInstance();

        director.CurrentSceneControllor = this;
        arrow_factory  = Singleton <ArrowFactory> .Instance;
        recorder       = gameObject.AddComponent <ScoreRecorder>() as ScoreRecorder;
        user_gui       = gameObject.AddComponent <UserGUI> () as UserGUI;
        action_manager = gameObject.AddComponent <ArrowFlyActionManager>() as ArrowFlyActionManager;
        LoadResources();
    }
    void Start()
    {
        SSDirector director = SSDirector.GetInstance();

        arrow_factory = Singleton <ArrowFactory> .Instance;
        recorder      = Singleton <ScoreRecorder> .Instance;
        director.CurrentScenceController = this;
        action_manager = gameObject.AddComponent <ArrowFlyActionManager>() as ArrowFlyActionManager;
        LoadResources();
        main_camera.GetComponent <CameraFlow>().bow = bow;
        //the starting contitdion of wind
        wind_directX = Random.Range(-1, 1);
        wind_directY = Random.Range(-1, 1);
        //make wind
        CreateWind();
    }