public void Init() { mMapMgr = MapMgr.Instance; mOpenList = new List <Node>(); mCloseList = new List <Node>(); mRes = new List <Node>(); HTLogger.Info("AStarMgr init done."); }
private void Init() { LoggerService.Instance.Init(); HTLogger.Info("LoggerService init done."); mTxt_Num_Food = GetTextFromSlider(Slider_Food, TXT_NUM); mTxt_Num_Water = GetTextFromSlider(Slider_Water, TXT_NUM); mTxt_Num_Energy = GetTextFromSlider(Slider_Energy, TXT_NUM); mTxt_Num_Mood = GetTextFromSlider(Slider_Mood, TXT_NUM); GameFacade.Instance.Init(this); HTLogger.Info("GameFacade init done."); }
private void Init() { CustomLoggerService.Instance.Init(); mTimer = TimerServiceForTest.Instance; mTimer.Init(); SaveMgr.Instance.Init(); mMapMgr = MapMgr.Instance; mMapMgr.Init(MapWidth, MapHeight); mAStarMgr = AStarMgr.Instance; mAStarMgr.Init(); mRandomMapCreator = RandomMapCreator.Instance; mRandomMapCreator.Init(); mRecorder = Recorder.Instance; mRecorder.Init(); mTimer.Subscribe(TIMER_KEY_CREATE_MAP); mTimer.Subscribe(TIMER_KEY_ASTAR_PF); InitDataId(); HTLogger.Info("All init done."); }
private void Start() { UnityDebugListener unityDebugListener = new UnityDebugListener(); UnityWarningListener unityWarningListener = new UnityWarningListener(); UnityErrorListener unityErrorListener = new UnityErrorListener(); HTLogger.Instance.Init(true); HTLogger.Instance.AddListener(HTLogger.Channel.Info, unityDebugListener); HTLogger.Instance.AddListener(HTLogger.Channel.Todo, unityDebugListener); HTLogger.Instance.AddListener(HTLogger.Channel.Debug, unityDebugListener); HTLogger.Instance.AddListener(HTLogger.Channel.Warning, unityWarningListener); HTLogger.Instance.AddListener(HTLogger.Channel.Error, unityErrorListener); HTLogger.Info("测试 Logger 成功!"); HTLogger.Todo("测试 Logger 成功!"); HTLogger.Debug("测试 Logger 成功!"); HTLogger.Warning("测试 Logger 成功!"); HTLogger.Error("测试 Logger 成功!"); }
private void BuildBehaviorTree() { mBlackboard = new Blackboard(); mRootNode = new RepeatNode( new ParallelNode(1) .AddChild(new SelectorNode() .AddChild(new SequenceNode() .AddChild(new FeelBoring(), new WalkTo(), new HaveFun()) , new SequenceNode() .AddChild(new FeelHungry(), new WalkTo(), new EatFood()) , new SequenceNode() .AddChild(new FeelThirsty(), new WalkTo(), new DrinkWater()) , new SequenceNode() .AddChild(new FeelTired(), new WalkTo(), new HaveRest()) , new SequenceNode() .AddChild(new FeelPoor(), new WalkTo(), new Work()) ) , new Alive()) , 0); HTLogger.Info("AI 行为树构建完成!"); }
public void Init() { mSaveMgr = SaveMgr.Instance; mDataDict = new Dictionary <int, RunningData>(); HTLogger.Info("Recorder init done."); }
public void Init() { mMapMgr = MapMgr.Instance; HTLogger.Info("RandomMapCreator init done."); }
public void Init() { HTLogger.Info("SaveMgr init done."); }