Esempio n. 1
0
            public EachAi(NpcAi generator, GameObject npc)
            {
                _generator = generator;
                _npc       = npc;

                _random = new Random(_npc.GetHashCode());
            }
Esempio n. 2
0
        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;
            }
        }