File tree Expand file tree Collapse file tree 8 files changed +126
-107
lines changed Expand file tree Collapse file tree 8 files changed +126
-107
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ NavMeshSettings:
114
114
maxJumpAcrossDistance : 0
115
115
minRegionArea : 2
116
116
manualCellSize : 0
117
- cellSize : 0.3333333
117
+ cellSize : 0.33333334
118
118
manualTileSize : 0
119
119
tileSize : 256
120
120
accuratePlacement : 0
@@ -364,6 +364,7 @@ MonoBehaviour:
364
364
m_Name :
365
365
m_EditorClassIdentifier :
366
366
targetMarker : {fileID: 1288038139}
367
+ verticalOffset : 10
367
368
--- !u!1 &437517160
368
369
GameObject :
369
370
m_ObjectHideFlags : 0
@@ -811,7 +812,7 @@ GameObject:
811
812
m_TagString : Untagged
812
813
m_Icon : {fileID: 0}
813
814
m_NavMeshLayer : 1
814
- m_StaticEditorFlags : 4294967295
815
+ m_StaticEditorFlags : 2147483647
815
816
m_IsActive : 1
816
817
--- !u!4 &1377038840
817
818
Transform :
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ public class Target : MonoBehaviour
5
5
{
6
6
private UnityEngine . AI . NavMeshAgent [ ] navAgents ;
7
7
public Transform targetMarker ;
8
+ public float verticalOffset = 10.0f ;
8
9
9
10
void Start ( )
10
11
{
@@ -24,16 +25,14 @@ void Update ()
24
25
int button = 0 ;
25
26
26
27
//Get the point of the hit position when the mouse is being clicked
27
- if ( Input . GetMouseButtonDown ( button ) )
28
- {
28
+ if ( Input . GetMouseButtonDown ( button ) ) {
29
29
Ray ray = Camera . main . ScreenPointToRay ( Input . mousePosition ) ;
30
30
RaycastHit hitInfo ;
31
31
32
- if ( Physics . Raycast ( ray . origin , ray . direction , out hitInfo ) )
33
- {
32
+ if ( Physics . Raycast ( ray . origin , ray . direction , out hitInfo ) ) {
34
33
Vector3 targetPosition = hitInfo . point ;
35
34
UpdateTargets ( targetPosition ) ;
36
- targetMarker . position = targetPosition + new Vector3 ( 0 , 5 , 0 ) ;
35
+ targetMarker . position = targetPosition + new Vector3 ( 0 , verticalOffset , 0 ) ;
37
36
}
38
37
}
39
38
}
Original file line number Diff line number Diff line change 3
3
"com.unity.2d.sprite" : " 1.0.0" ,
4
4
"com.unity.2d.tilemap" : " 1.0.0" ,
5
5
"com.unity.ads" : " 3.7.5" ,
6
- "com.unity.analytics" : " 3.6.11 " ,
7
- "com.unity.collab-proxy" : " 1.15.1 " ,
6
+ "com.unity.analytics" : " 3.7.1 " ,
7
+ "com.unity.collab-proxy" : " 1.15.4 " ,
8
8
"com.unity.ide.rider" : " 3.0.7" ,
9
9
"com.unity.ide.visualstudio" : " 2.0.12" ,
10
10
"com.unity.ide.vscode" : " 1.2.4" ,
11
11
"com.unity.purchasing" : " 4.1.1" ,
12
- "com.unity.test-framework" : " 1.1.29 " ,
12
+ "com.unity.test-framework" : " 1.1.30 " ,
13
13
"com.unity.textmeshpro" : " 3.0.6" ,
14
14
"com.unity.timeline" : " 1.7.0-pre.1" ,
15
15
"com.unity.ugui" : " 1.0.0" ,
Original file line number Diff line number Diff line change 22
22
"url" : " https://packages.unity.com"
23
23
},
24
24
"com.unity.analytics" : {
25
- "version" : " 3.6.11 " ,
25
+ "version" : " 3.7.1 " ,
26
26
"depth" : 0 ,
27
27
"source" : " registry" ,
28
28
"dependencies" : {
29
+ "com.unity.services.analytics" : " 1.0.4" ,
29
30
"com.unity.ugui" : " 1.0.0"
30
31
},
31
32
"url" : " https://packages.unity.com"
32
33
},
33
34
"com.unity.collab-proxy" : {
34
- "version" : " 1.15.1 " ,
35
+ "version" : " 1.15.4 " ,
35
36
"depth" : 0 ,
36
37
"source" : " registry" ,
37
38
"dependencies" : {
73
74
"url" : " https://packages.unity.com"
74
75
},
75
76
"com.unity.nuget.newtonsoft-json" : {
76
- "version" : " 2.0.0 " ,
77
+ "version" : " 2.0.2 " ,
77
78
"depth" : 1 ,
78
79
"source" : " registry" ,
79
80
"dependencies" : {},
93
94
},
94
95
"url" : " https://packages.unity.com"
95
96
},
97
+ "com.unity.services.analytics" : {
98
+ "version" : " 1.0.4" ,
99
+ "depth" : 1 ,
100
+ "source" : " registry" ,
101
+ "dependencies" : {
102
+ "com.unity.services.core" : " 1.0.1"
103
+ },
104
+ "url" : " https://packages.unity.com"
105
+ },
96
106
"com.unity.services.core" : {
97
107
"version" : " 1.0.1" ,
98
108
"depth" : 1 ,
103
113
"url" : " https://packages.unity.com"
104
114
},
105
115
"com.unity.test-framework" : {
106
- "version" : " 1.1.29 " ,
116
+ "version" : " 1.1.30 " ,
107
117
"depth" : 0 ,
108
118
"source" : " registry" ,
109
119
"dependencies" : {
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ NavMeshProjectSettings:
73
73
m_Settings :
74
74
- serializedVersion : 2
75
75
agentTypeID : 0
76
- agentRadius : 0.5
76
+ agentRadius : 10
77
77
agentHeight : 2
78
78
agentSlope : 45
79
79
agentClimb : 0.75
@@ -85,6 +85,8 @@ NavMeshProjectSettings:
85
85
manualTileSize : 0
86
86
tileSize : 256
87
87
accuratePlacement : 0
88
+ maxJobWorkers : 0
89
+ preserveTilesOutsideBounds : 0
88
90
debug :
89
91
m_Flags : 0
90
92
m_SettingNames :
Original file line number Diff line number Diff line change 1
- m_EditorVersion: 2022.1.0a15
2
- m_EditorVersionWithRevision: 2022.1.0a15 (49120632d05b )
1
+ m_EditorVersion: 2022.1.0b2
2
+ m_EditorVersionWithRevision: 2022.1.0b2 (980041f98dd2 )
You can’t perform that action at this time.
0 commit comments