Amel 4 年前
当前提交
4717e2f5
共有 3 个文件被更改,包括 85 次插入33 次删除
  1. 61
      UOP1_Project/Assets/Scenes/WIP/TestingGround.unity
  2. 51
      UOP1_Project/Assets/ScriptableObjects/StateMachine/Config/NPCPathwayConfigTownsfolk.asset
  3. 6
      UOP1_Project/Assets/Scripts/Characters/StateMachine/Conditions/HasReachedRoamingDestinationSO.cs

61
UOP1_Project/Assets/Scenes/WIP/TestingGround.unity
文件差异内容过多而无法显示
查看文件

51
UOP1_Project/Assets/ScriptableObjects/StateMachine/Config/NPCPathwayConfigTownsfolk.asset


m_Script: {fileID: 11500000, guid: 76542500a512494489526e9bcfd3a1b8, type: 3}
m_Name: NPCPathwayConfigTownsfolk
m_EditorClassIdentifier:
_stopDuration: 0.5
_stopDuration: 0
- waypoint: {x: -26.578838, y: 0.6177962, z: 18.665764}
- waypoint: {x: -26.578838, y: 0.58714384, z: 18.665764}
- {x: -26.578838, y: 0.6177962, z: 18.665764}
- {x: -25.9, y: 0.2837304, z: 15.8}
- {x: -25.6, y: 0.033730388, z: -0.40000057}
- {x: -24.983253, y: 0.033730388, z: -13.599371}
- waypoint: {x: -24.983253, y: 0.033730388, z: -13.599371}
- {x: -26.578838, y: 0.64070433, z: 18.665764}
- {x: -25.9, y: 0.26190948, z: 15.8}
- {x: -25.6, y: 0.011909485, z: 0}
- {x: -24.983253, y: 0.011909485, z: -13.599371}
- waypoint: {x: -24.983253, y: 0.00236726, z: -13.599371}
- {x: -24.983253, y: 0.033730388, z: -13.599371}
- {x: -20.5, y: 0.033730388, z: -13.900001}
- {x: 24.5, y: 0.58373034, z: -22.6}
- {x: 41.976913, y: 0.033730388, z: -23.476913}
- waypoint: {x: 41.976913, y: 0.033730388, z: -23.476913}
- {x: -24.983253, y: 0.011909485, z: -13.599371}
- {x: -20.6, y: 0.011909485, z: -13.6}
- {x: -6.5, y: 0.011909485, z: -16.6}
- {x: 5.200001, y: 0.011909485, z: -21.3}
- {x: 25.6, y: 0.46190977, z: -25.6}
- {x: 28.5, y: 0.26190948, z: -25.300001}
- {x: 41.976913, y: 0.013306447, z: -23.476913}
- waypoint: {x: 41.976913, y: 0, z: -23.476913}
- {x: 41.976913, y: 0.033730388, z: -23.476913}
- {x: 41.800003, y: 0.033730388, z: -23.300001}
- {x: 39.6, y: 0.83373034, z: -14.6}
- {x: 37.4, y: 1.4337304, z: -8.9}
- {x: 34.559994, y: 1.862305, z: -4.9886}
- waypoint: {x: 34.559994, y: 1.862305, z: -4.9886}
- {x: 41.976913, y: 0.013306447, z: -23.476913}
- {x: 41.6, y: 0.011909485, z: -22.9}
- {x: 35.9, y: 1.3119097, z: -9.5}
- {x: 34.559994, y: 1.8540876, z: -4.9886}
- waypoint: {x: 34.559994, y: 1.8232658, z: -4.9886}
- {x: 34.559994, y: 1.862305, z: -4.9886}
- {x: 24.800001, y: 1.8337305, z: 6.5}
- {x: 24.6, y: 1.7837303, z: 6.7000003}
- {x: 16.300001, y: 0.5337304, z: 11.8}
- {x: -26.578838, y: 0.6177962, z: 18.665764}
- {x: 34.559994, y: 1.8540876, z: -4.9886}
- {x: 2.7999992, y: 0.011909485, z: -0.79999924}
- {x: 0, y: 0.011909485, z: 0}
- {x: -5.5, y: 0.011909485, z: 1.9}
- {x: -5.8999996, y: 0.011909485, z: 2.2}
- {x: -22.7, y: 0.31190968, z: 15.3}
- {x: -23.4, y: 0.3619094, z: 15.900001}
- {x: -26.578838, y: 0.64070433, z: 18.665764}
_lineColor: {r: 0, g: 0.19270587, b: 1, a: 1}
_textSize: 20
_textColor: {r: 1, g: 1, b: 1, a: 1}

6
UOP1_Project/Assets/Scripts/Characters/StateMachine/Conditions/HasReachedRoamingDestinationSO.cs


{
//Debug.Log("This agent is defined" + _agentDefined);
//Debug.Log("This agent has path " + _agent.hasPath);
return !_agentDefined || !_agent.hasPath;
Debug.Log("distance remaining" + _agent.remainingDistance);
return _agent.remainingDistance < 0.01;
//value to use 0.1? and has path
//!_agent.hasPath ||
}
}
正在加载...
取消
保存