Ejemplo n.º 1
0
    //public DiskFactory diskFactory;

    void Awake()
    {
        Director director = Director.GetInstance();

        director.currentSceneController = this;
        director.currentSceneController.loadResources();

        userGUI = gameObject.AddComponent <UserGUI>() as UserGUI;
        this.gameObject.AddComponent <DiskFactory>();
        actionManager = gameObject.AddComponent <FirstActionManager>() as FirstActionManager;
    }
Ejemplo n.º 2
0
    void Awake()
    {
        Director director = Director.GetInstance();

        director.currentSceneController = this;
        director.currentSceneController.loadResources();

        userGUI = gameObject.AddComponent <UserGUI>() as UserGUI;
        //this.gameObject.AddComponent<DiskFactory>();
        actionManager = gameObject.AddComponent <FirstActionManager>() as FirstActionManager;

        ruler = gameObject.AddComponent <Ruler>() as Ruler;
        cam.transform.position = new Vector3(0, -2, -15);
    }
Ejemplo n.º 3
0
 void Start()
 {
     firstActionManager = gameObject.AddComponent <FirstActionManager>() as FirstActionManager;
 }
Ejemplo n.º 4
0
 void Start()
 {
     firstActionManager = gameObject.AddComponent <FirstActionManager>() as FirstActionManager;
     board = Instantiate <GameObject>(Resources.Load <GameObject>("Prefabs/board"));
 }