コード例 #1
0
        protected void SetupFakeWorld(bool withABot = true, bool withFood = true)
        {
            if (withFood)
            {
                WorldStateService.GenerateStartingWorld();
            }

            if (withABot)
            {
                WorldBotId = Guid.NewGuid();
                WorldStateService.CreateBotObject(WorldBotId);
            }

            WorldStateService.GetState().WormholePairs = new List <Tuple <GameObject, GameObject> >();
        }
コード例 #2
0
 private void OnRegisterBot(Guid id)
 {
     Logger.LogDebug("Core", "Registering new Bot");
     worldStateService.CreateBotObject(id);
 }