Ejemplo n.º 1
0
        void Start()
        {
            _game   = gameObject.GetComponent <MainProxy>();
            _uiHook = FindObjectOfType <LoginScreenHook>();

            showWaiter();
        }
Ejemplo n.º 2
0
 void Start()
 {
     _game = gameObject.GetComponent<MainProxy>();
     _sim = gameObject.GetComponent<WorldSimulation>();
     _uiHook = FindObjectOfType<CheatMenuHook>();
     _uiHook.hideContent();
 }
Ejemplo n.º 3
0
 void Start()
 {
     _game   = gameObject.GetComponent <MainProxy>();
     _sim    = gameObject.GetComponent <WorldSimulation>();
     _uiHook = FindObjectOfType <CheatMenuHook>();
     _uiHook.hideContent();
 }
Ejemplo n.º 4
0
        IEnumerator Start()
        {
            _game = gameObject.GetComponent<MainProxy>();

            _state = ConnectionState.UNKNOWN;
            _socket = new WebSocket (new Uri ("ws://188.242.130.83:3000/echo"));
            yield return StartCoroutine (_socket.Connect ());
        }
Ejemplo n.º 5
0
        public void initialize(GameObject cellPrefab, WorldData data)
        {
            _game  = gameObject.GetComponent <MainProxy>();
            _board = gameObject.AddComponent <BoardContainer>();
            _board.createBoard(cellPrefab, data.sizeX, data.sizeY);
            _data = data;

            _drag = new BoardMouseControl();
            _drag.initialize(_game.myId, Camera.main, _board, deployDebugConfig);
            _cellPrefab = cellPrefab;
        }