分离所有RewardFunction相关到单独的一个Script里。
This commit is contained in:
+34
-16
@@ -1766,6 +1766,8 @@ MonoBehaviour:
|
||||
spinRecordMax: 40
|
||||
spinPenaltyThreshold: 10
|
||||
facingInviewEnemyDisCOEF: 0.5
|
||||
group1Tag: Player
|
||||
group2Tag: Enemy
|
||||
hitTargetRewardDefault: 25
|
||||
killTargetEnemyRewardDefault: 25
|
||||
inAreaRewardDefault: 12
|
||||
@@ -3300,7 +3302,7 @@ RectTransform:
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0.000030517578, y: -246.20204}
|
||||
m_AnchoredPosition: {x: 0.000030517578, y: -246.20215}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 0}
|
||||
--- !u!114 &324069808
|
||||
@@ -7093,6 +7095,7 @@ GameObject:
|
||||
- component: {fileID: 629870341}
|
||||
- component: {fileID: 629870347}
|
||||
- component: {fileID: 629870346}
|
||||
- component: {fileID: 629870348}
|
||||
- component: {fileID: 629870339}
|
||||
- component: {fileID: 629870338}
|
||||
- component: {fileID: 629870344}
|
||||
@@ -7261,11 +7264,12 @@ MonoBehaviour:
|
||||
hasUpgradedFromAgentParameters: 1
|
||||
MaxStep: 0
|
||||
paramContainerObj: {fileID: 707336050}
|
||||
CommonParameterContainer: {fileID: 220347584}
|
||||
commonParameterContainer: {fileID: 220347584}
|
||||
targetControllerObj: {fileID: 1692325237}
|
||||
environmentUIObj: {fileID: 156390936}
|
||||
sideChannelObj: {fileID: 0}
|
||||
hudUIObj: {fileID: 2082200184}
|
||||
sideChannelObj: {fileID: 1866094461}
|
||||
worldUIControllerObj: {fileID: 1052251813}
|
||||
hudObj: {fileID: 2082200184}
|
||||
oneHotRayTag: 1
|
||||
--- !u!114 &629870347
|
||||
MonoBehaviour:
|
||||
@@ -7280,12 +7284,6 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
commonParameterContainerObj: {fileID: 220347584}
|
||||
environmentObj: {fileID: 749443372}
|
||||
enemyContainerObj: {fileID: 891195334}
|
||||
sceneBlockContainerObj: {fileID: 1811162388}
|
||||
environmentUIControlObj: {fileID: 156390936}
|
||||
targetControllerObj: {fileID: 1692325237}
|
||||
HUDObj: {fileID: 2082200184}
|
||||
fpsCam: {fileID: 1633276149}
|
||||
moveSpeed: 9
|
||||
vX: 0
|
||||
@@ -7295,7 +7293,29 @@ MonoBehaviour:
|
||||
mouseXSensitivity: 100
|
||||
mouseYSensitivity: 200
|
||||
yRotation: 0.1
|
||||
lastShootTime: 0
|
||||
enemyKillCount: 0
|
||||
killEnemyPosition: {x: 0, y: 0, z: 0}
|
||||
defaultTPCamera: 1
|
||||
myTag:
|
||||
--- !u!114 &629870348
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 629870337}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 04b45691af6143d4d84b5d024d062bf7, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
parameterContainerObj: {fileID: 707336050}
|
||||
sceneBlockContainerObj: {fileID: 1811162388}
|
||||
targetControllerObj: {fileID: 1692325237}
|
||||
environmentUIObj: {fileID: 156390936}
|
||||
commonParameterContainerObj: {fileID: 220347584}
|
||||
enemyContainerObj: {fileID: 891195334}
|
||||
--- !u!1 &636386815
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -12773,7 +12793,7 @@ MonoBehaviour:
|
||||
m_HandleRect: {fileID: 538300382}
|
||||
m_Direction: 2
|
||||
m_Value: 0
|
||||
m_Size: 1
|
||||
m_Size: 0.9999897
|
||||
m_NumberOfSteps: 0
|
||||
m_OnValueChanged:
|
||||
m_PersistentCalls:
|
||||
@@ -16050,17 +16070,13 @@ MonoBehaviour:
|
||||
HUDObj: {fileID: 2082200184}
|
||||
sceneBlockContainerObj: {fileID: 1811162388}
|
||||
enemyContainerObj: {fileID: 891195334}
|
||||
parameterContainerObj: {fileID: 707336050}
|
||||
commonParameterContainerObj: {fileID: 220347584}
|
||||
environmentUIObj: {fileID: 156390936}
|
||||
worldUIObj: {fileID: 1052251813}
|
||||
edgeUp: {fileID: 1352953080}
|
||||
edgeDown: {fileID: 1571061029}
|
||||
edgeLeft: {fileID: 1551793502}
|
||||
edgeRight: {fileID: 1046425531}
|
||||
edgeAgent_Enemy: {fileID: 704984377}
|
||||
group1Tag: Player
|
||||
group2Tag: Enemy
|
||||
minEnemyAreaX: 0
|
||||
attackProb: 0.1
|
||||
gotoProb: 0.1
|
||||
@@ -16072,7 +16088,9 @@ MonoBehaviour:
|
||||
- 0
|
||||
- 0
|
||||
- 0
|
||||
inArea: 0
|
||||
targetPosition: {x: 0, y: 0, z: 0}
|
||||
targetEnemySpawnFinish: 0
|
||||
--- !u!1 &1695161701
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -21488,7 +21506,7 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
chartOn: 0
|
||||
sideChannelObj: {fileID: 0}
|
||||
sideChannelObj: {fileID: 1866094461}
|
||||
chartOnToggleObj: {fileID: 269417898}
|
||||
saveModelButton: {fileID: 0}
|
||||
chartOnTimeOutInputObj: {fileID: 149218411}
|
||||
|
||||
+46
-27
@@ -3955,11 +3955,11 @@ RectTransform:
|
||||
m_Father: {fileID: 55747560}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 250, y: -150}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &413189341
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -4393,11 +4393,11 @@ RectTransform:
|
||||
m_Father: {fileID: 55747560}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 250, y: -150}
|
||||
m_AnchorMin: {x: 1, y: 0.5}
|
||||
m_AnchorMax: {x: 1, y: 0.5}
|
||||
m_AnchoredPosition: {x: -250, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
m_Pivot: {x: 1, y: 0.5}
|
||||
--- !u!114 &440411431
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -5859,6 +5859,7 @@ GameObject:
|
||||
- component: {fileID: 629870347}
|
||||
- component: {fileID: 629870346}
|
||||
- component: {fileID: 629870339}
|
||||
- component: {fileID: 629870348}
|
||||
- component: {fileID: 629870338}
|
||||
- component: {fileID: 629870344}
|
||||
- component: {fileID: 629870345}
|
||||
@@ -6026,11 +6027,12 @@ MonoBehaviour:
|
||||
hasUpgradedFromAgentParameters: 1
|
||||
MaxStep: 0
|
||||
paramContainerObj: {fileID: 707336050}
|
||||
CommonParameterContainer: {fileID: 1580123439}
|
||||
commonParameterContainer: {fileID: 1580123439}
|
||||
targetControllerObj: {fileID: 1692325237}
|
||||
environmentUIObj: {fileID: 156390936}
|
||||
sideChannelObj: {fileID: 1866094461}
|
||||
hudUIObj: {fileID: 2082200184}
|
||||
worldUIControllerObj: {fileID: 1052251813}
|
||||
hudObj: {fileID: 2082200184}
|
||||
oneHotRayTag: 1
|
||||
--- !u!114 &629870347
|
||||
MonoBehaviour:
|
||||
@@ -6050,7 +6052,6 @@ MonoBehaviour:
|
||||
sceneBlockContainerObj: {fileID: 1811162388}
|
||||
environmentUIControlObj: {fileID: 156390936}
|
||||
targetControllerObj: {fileID: 1692325237}
|
||||
HUDObj: {fileID: 2082200184}
|
||||
fpsCam: {fileID: 1633276149}
|
||||
moveSpeed: 9
|
||||
vX: 0
|
||||
@@ -6061,6 +6062,24 @@ MonoBehaviour:
|
||||
mouseYSensitivity: 200
|
||||
yRotation: 0.1
|
||||
defaultTPCamera: 1
|
||||
--- !u!114 &629870348
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 629870337}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 04b45691af6143d4d84b5d024d062bf7, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
commonParameterContainerObj: {fileID: 1580123439}
|
||||
parameterContainerObj: {fileID: 707336050}
|
||||
sceneBlockContainerObj: {fileID: 1811162388}
|
||||
targetControllerObj: {fileID: 1692325237}
|
||||
environmentUIObj: {fileID: 156390936}
|
||||
enemyContainerObj: {fileID: 891195334}
|
||||
--- !u!1 &636386815
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -7085,11 +7104,11 @@ RectTransform:
|
||||
m_Father: {fileID: 413189340}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 2, y: -0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 2, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &762190081
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -7117,7 +7136,7 @@ MonoBehaviour:
|
||||
m_BestFit: 0
|
||||
m_MinSize: 10
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 0
|
||||
m_Alignment: 4
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 1
|
||||
@@ -11162,7 +11181,7 @@ RectTransform:
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0.000030517578, y: -246.2022}
|
||||
m_AnchoredPosition: {x: 0.000030517578, y: -246.20177}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 0}
|
||||
--- !u!114 &1442113294
|
||||
@@ -12155,6 +12174,8 @@ MonoBehaviour:
|
||||
spinRecordMax: 40
|
||||
spinPenaltyThreshold: 10
|
||||
facingInviewEnemyDisCOEF: 0.5
|
||||
group1Tag: Player
|
||||
group2Tag: Enemy
|
||||
hitTargetRewardDefault: 25
|
||||
killTargetEnemyRewardDefault: 25
|
||||
inAreaRewardDefault: 12
|
||||
@@ -12921,17 +12942,13 @@ MonoBehaviour:
|
||||
HUDObj: {fileID: 2082200184}
|
||||
sceneBlockContainerObj: {fileID: 1811162388}
|
||||
enemyContainerObj: {fileID: 891195334}
|
||||
parameterContainerObj: {fileID: 707336050}
|
||||
commonParameterContainerObj: {fileID: 1580123439}
|
||||
environmentUIObj: {fileID: 156390936}
|
||||
worldUIObj: {fileID: 1052251813}
|
||||
edgeUp: {fileID: 1352953080}
|
||||
edgeDown: {fileID: 1571061029}
|
||||
edgeLeft: {fileID: 1551793502}
|
||||
edgeRight: {fileID: 1046425531}
|
||||
edgeAgent_Enemy: {fileID: 704984377}
|
||||
group1Tag: Player
|
||||
group2Tag: Enemy
|
||||
minEnemyAreaX: 0
|
||||
attackProb: 0.375
|
||||
gotoProb: 0.392
|
||||
@@ -12943,7 +12960,9 @@ MonoBehaviour:
|
||||
- 0
|
||||
- 0
|
||||
- 0
|
||||
inArea: 0
|
||||
targetPosition: {x: 0, y: 0, z: 0}
|
||||
targetEnemySpawnFinish: 0
|
||||
--- !u!1 &1695161701
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -13140,11 +13159,11 @@ RectTransform:
|
||||
m_Father: {fileID: 440411430}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 2, y: -0}
|
||||
m_AnchorMin: {x: 1, y: 0.5}
|
||||
m_AnchorMax: {x: 1, y: 0.5}
|
||||
m_AnchoredPosition: {x: -2, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
m_Pivot: {x: 1, y: 0.5}
|
||||
--- !u!114 &1714055741
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -13172,7 +13191,7 @@ MonoBehaviour:
|
||||
m_BestFit: 0
|
||||
m_MinSize: 10
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 0
|
||||
m_Alignment: 5
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 1
|
||||
@@ -16584,7 +16603,7 @@ MonoBehaviour:
|
||||
m_HandleRect: {fileID: 1766662801}
|
||||
m_Direction: 2
|
||||
m_Value: 0
|
||||
m_Size: 1
|
||||
m_Size: 0.9999902
|
||||
m_NumberOfSteps: 0
|
||||
m_OnValueChanged:
|
||||
m_PersistentCalls:
|
||||
|
||||
Reference in New Issue
Block a user