예제 #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;
            }
        }