コード例 #1
0
            public EachAi(NpcAi generator, GameObject npc)
            {
                _generator = generator;
                _npc       = npc;

                _random = new Random(_npc.GetHashCode());
            }
コード例 #2
0
ファイル: ServerContext.cs プロジェクト: lacti/Lz
        internal ServerContext(Listener listener, DataManager data, Coroutine coroutine)
        {
            _listener  = listener;
            _data      = data;
            _coroutine = coroutine;

            _npcAi = new NpcAi(this);

            LoadObjectsFromStore();
            if (_gameObjects.Count > 0)
            {
                _objectId = _gameObjects.Values.Select(e => e.ObjectId).Max() + 1;
            }
        }