Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
tetra-tower
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Oenos
tetra-tower
Commits
12de29b2
Commit
12de29b2
authored
Feb 26, 2019
by
15김민규
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
거미 이제 벽 안넘어감
parent
bc4ab857
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
13 deletions
+27
-13
Spider.prefab
Assets/Prefabs/Characters/Enemy/Spider.prefab
+7
-7
testEnemy.unity
Assets/Scenes/testEnemy.unity
+18
-4
EnemyAir.cs
Assets/Scripts/Characters/Enemy/EnemyAir.cs
+2
-2
No files found.
Assets/Prefabs/Characters/Enemy/Spider.prefab
View file @
12de29b2
...
...
@@ -27,7 +27,7 @@ GameObject:
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
0
m_IsActive
:
1
---
!u!1
&1822069857481414
GameObject
:
m_ObjectHideFlags
:
0
...
...
@@ -141,19 +141,19 @@ Rigidbody2D:
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1346522711063220
}
m_BodyType
:
1
m_BodyType
:
0
m_Simulated
:
1
m_UseFullKinematicContacts
:
0
m_UseAutoMass
:
0
m_Mass
:
1
m_LinearDrag
:
0
m_AngularDrag
:
0.05
m_GravityScale
:
1
m_AngularDrag
:
50
m_GravityScale
:
0
m_Material
:
{
fileID
:
0
}
m_Interpolate
:
0
m_Interpolate
:
1
m_SleepingMode
:
1
m_CollisionDetection
:
0
m_Constraints
:
3
m_CollisionDetection
:
1
m_Constraints
:
0
---
!u!61
&61019308264186112
BoxCollider2D
:
m_ObjectHideFlags
:
1
...
...
Assets/Scenes/testEnemy.unity
View file @
12de29b2
...
...
@@ -630,7 +630,12 @@ Prefab:
-
target
:
{
fileID
:
114402380471012178
,
guid
:
3d077a5f727dd1e4780e9265ed26e036
,
type
:
2
}
propertyPath
:
debuffTime.Array.data[2]
value
:
3
value
:
0
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
114402380471012178
,
guid
:
3d077a5f727dd1e4780e9265ed26e036
,
type
:
2
}
propertyPath
:
knockBackMultiplier
value
:
100
objectReference
:
{
fileID
:
0
}
m_RemovedComponents
:
[]
m_SourcePrefab
:
{
fileID
:
100100000
,
guid
:
3d077a5f727dd1e4780e9265ed26e036
,
type
:
2
}
...
...
@@ -770,9 +775,10 @@ Prefab:
propertyPath
:
m_RootOrder
value
:
17
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
1346522711063220
,
guid
:
e4298313f9e94c44fb057542ec7ad273
,
type
:
2
}
propertyPath
:
m_IsActive
value
:
1
-
target
:
{
fileID
:
50573848117970958
,
guid
:
e4298313f9e94c44fb057542ec7ad273
,
type
:
2
}
propertyPath
:
m_AngularDrag
value
:
50
objectReference
:
{
fileID
:
0
}
m_RemovedComponents
:
[]
m_SourcePrefab
:
{
fileID
:
100100000
,
guid
:
e4298313f9e94c44fb057542ec7ad273
,
type
:
2
}
...
...
@@ -980,6 +986,10 @@ Prefab:
propertyPath
:
m_AnchoredPosition.y
value
:
-394
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
1083421967201116
,
guid
:
e6794ab8e2e4c6340a23b382e9497cbb
,
type
:
2
}
propertyPath
:
m_IsActive
value
:
0
objectReference
:
{
fileID
:
0
}
m_RemovedComponents
:
[]
m_SourcePrefab
:
{
fileID
:
100100000
,
guid
:
e6794ab8e2e4c6340a23b382e9497cbb
,
type
:
2
}
m_IsPrefabAsset
:
0
...
...
@@ -1624,6 +1634,10 @@ Prefab:
propertyPath
:
m_RootOrder
value
:
0
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
4242738345506188
,
guid
:
29d5569197813594db51adf0d061bc36
,
type
:
2
}
propertyPath
:
m_LocalPosition.x
value
:
0
objectReference
:
{
fileID
:
0
}
m_RemovedComponents
:
[]
m_SourcePrefab
:
{
fileID
:
100100000
,
guid
:
29d5569197813594db51adf0d061bc36
,
type
:
2
}
m_IsPrefabAsset
:
0
...
...
Assets/Scripts/Characters/Enemy/EnemyAir.cs
View file @
12de29b2
...
...
@@ -42,7 +42,7 @@ public class EnemyAir : Enemy {
private
void
ChangeAngleZ
(
float
val
,
bool
[]
lockArray
)
{
foreach
(
var
Lock
in
lockArray
)
{
if
(
Lock
)
return
;
}
foreach
(
var
Lock
in
lockArray
)
{
if
(
Lock
)
{
return
;
}
}
Vector3
tempAngle
=
transform
.
parent
.
eulerAngles
;
tempAngle
.
z
=
val
;
transform
.
parent
.
eulerAngles
=
tempAngle
;
...
...
@@ -50,7 +50,7 @@ public class EnemyAir : Enemy {
private
void
ChangeVelocityXY
(
Vector2
val
,
bool
[]
lockArray
)
{
foreach
(
var
Lock
in
lockArray
)
{
if
(
Lock
)
return
;
}
foreach
(
var
Lock
in
lockArray
)
{
if
(
Lock
)
{
return
;
}
}
Vector3
tempVelocity
=
transform
.
parent
.
gameObject
.
GetComponent
<
Rigidbody2D
>().
velocity
;
tempVelocity
.
x
=
val
.
x
;
tempVelocity
.
y
=
val
.
y
;
...
...
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