void Start() { _game = gameObject.GetComponent <MainProxy>(); _uiHook = FindObjectOfType <LoginScreenHook>(); showWaiter(); }
void Start() { _game = gameObject.GetComponent<MainProxy>(); _sim = gameObject.GetComponent<WorldSimulation>(); _uiHook = FindObjectOfType<CheatMenuHook>(); _uiHook.hideContent(); }
void Start() { _game = gameObject.GetComponent <MainProxy>(); _sim = gameObject.GetComponent <WorldSimulation>(); _uiHook = FindObjectOfType <CheatMenuHook>(); _uiHook.hideContent(); }
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 ()); }
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; }