Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gadig
NecronomiConn
Commits
7d3e45dc
Commit
7d3e45dc
authored
Feb 27, 2019
by
DESKTOP-C0N3136\david
Browse files
Merge branch 'master' into EnemyMovementHopefullyNotBrokenThisTimeIDK
parents
c8dedf1a
43c815b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Necronomicon-Escape from Insanity/Assets/Scripts/EnemyMovement.cs
View file @
7d3e45dc
...
...
@@ -33,8 +33,9 @@ public class EnemyMovement : MonoBehaviour{
// Update is called once per frame
void
Update
(){
// check if the player is within the notice range
if
(
Vector3
.
Distance
(
transform
.
position
,
player
.
transform
.
position
)
>
=
noticeDistance
)
{
if
(
Vector3
.
Distance
(
transform
.
position
,
player
.
transform
.
position
)
<
=
noticeDistance
)
{
// make the enemy chase the player
navMesh
.
speed
=
chaseSpeed
;
}
else
{
...
...
Necronomicon-Escape from Insanity/Library/StateCache/Hierarchy/0b09e7-mainStage.json
View file @
7d3e45dc
{
"m_ExpandedPrefabGameObjectFileIDs"
:[],
"m_ExpandedSceneGameObjectInstanceIDs"
:[],
"m_ScrollY"
:
0.0
,
"m_LastClickedFileID"
:
0
,
"m_LastClickedInstanceID"
:
0
}
\ No newline at end of file
{
"m_ExpandedPrefabGameObjectFileIDs"
:[],
"m_ExpandedSceneGameObjectInstanceIDs"
:[
-1068
],
"m_ScrollY"
:
0.0
,
"m_LastClickedFileID"
:
0
,
"m_LastClickedInstanceID"
:
10694
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment