コード例 #1
0
        void Start()
        {
            _game   = gameObject.GetComponent <MainProxy>();
            _uiHook = FindObjectOfType <LoginScreenHook>();

            showWaiter();
        }
コード例 #2
0
ファイル: CheatMenuLogic.cs プロジェクト: andi2/ld32-6
 void Start()
 {
     _game = gameObject.GetComponent<MainProxy>();
     _sim = gameObject.GetComponent<WorldSimulation>();
     _uiHook = FindObjectOfType<CheatMenuHook>();
     _uiHook.hideContent();
 }
コード例 #3
0
 void Start()
 {
     _game   = gameObject.GetComponent <MainProxy>();
     _sim    = gameObject.GetComponent <WorldSimulation>();
     _uiHook = FindObjectOfType <CheatMenuHook>();
     _uiHook.hideContent();
 }
コード例 #4
0
ファイル: Connection.cs プロジェクト: andi2/ld32-6
        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 ());
        }
コード例 #5
0
ファイル: WorldSumulation.cs プロジェクト: nikitaosyak/ld32
        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;
        }