Ejemplo n.º 1
0
    void Start()
    {
        SSDirector director = SSDirector.GetInstance();

        director.CurrentSceneControllor = this;
        df  = Singleton <DiskFactory> .Instance;
        sr  = gameObject.AddComponent <ScoreRecorder> () as ScoreRecorder;
        ima = gameObject.AddComponent <ActionManagerAdapter>() as IActionManager;
        ug  = gameObject.AddComponent <UserGUI>() as UserGUI;
        rc  = gameObject.AddComponent <RoundControllor> () as RoundControllor;
        t   = speed;
    }
Ejemplo n.º 2
0
    void Start()
    {
        GameDirector director = GameDirector.GetInstance();

        director.CurrentSceneControllor = this;
        df        = Singleton <DiskFactory> .Instance;
        sr        = gameObject.AddComponent <ScoreRecorder> () as ScoreRecorder;
        iam       = gameObject.AddComponent <ActionManagerAdapter>() as IActionManager;
        ug        = gameObject.AddComponent <UserGUI>() as UserGUI;
        rc        = gameObject.AddComponent <RoundControllor> () as RoundControllor;
        explosion = Instantiate(Resources.Load <GameObject> ("Prefabs/ParticleSystemG"), new Vector3(0, -100, 0), Quaternion.identity);
        t         = speed;
    }