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
2f7f0143
Commit
2f7f0143
authored
Feb 16, 2019
by
18류지석
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
활 위로쏨. 필요없는 스크립트 삭제. 화살 ddd 하는거 수정
parent
ffeab171
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
36 deletions
+11
-36
Player.prefab
Assets/Prefabs/Characters/Player.prefab
+0
-12
bow_arrow.prefab
Assets/Resources/Prefabs/Projectiles/bow_arrow.prefab
+1
-1
ProjectileGenerator.cs
Assets/Scripts/Characters/ProjectileGenerator.cs
+0
-11
ProjectileGenerator.cs.meta
Assets/Scripts/Characters/ProjectileGenerator.cs.meta
+0
-11
Bow.cs
Assets/Scripts/Item/Items/Bow.cs
+10
-1
No files found.
Assets/Prefabs/Characters/Player.prefab
View file @
2f7f0143
...
...
@@ -26,7 +26,6 @@ GameObject:
-
component
:
{
fileID
:
114906702720267008
}
-
component
:
{
fileID
:
95992411616135034
}
-
component
:
{
fileID
:
114880704145925944
}
-
component
:
{
fileID
:
114277433455505312
}
-
component
:
{
fileID
:
82529156342294766
}
m_Layer
:
0
m_Name
:
Player
...
...
@@ -291,17 +290,6 @@ Animator:
m_HasTransformHierarchy
:
1
m_AllowConstantClipSamplingOptimization
:
1
m_KeepAnimatorControllerStateOnDisable
:
0
---
!u!114
&114277433455505312
MonoBehaviour
:
m_ObjectHideFlags
:
1
m_CorrespondingSourceObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1623439448163086
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
df26c325b370e6a4bb7a589984854376
,
type
:
3
}
m_Name
:
m_EditorClassIdentifier
:
---
!u!114
&114294925164316638
MonoBehaviour
:
m_ObjectHideFlags
:
1
...
...
Assets/Resources/Prefabs/Projectiles/bow_arrow.prefab
View file @
2f7f0143
...
...
@@ -60,7 +60,7 @@ Rigidbody2D:
m_AngularDrag
:
0
m_GravityScale
:
0
m_Material
:
{
fileID
:
0
}
m_Interpolate
:
0
m_Interpolate
:
1
m_SleepingMode
:
1
m_CollisionDetection
:
1
m_Constraints
:
4
...
...
Assets/Scripts/Characters/ProjectileGenerator.cs
deleted
100644 → 0
View file @
ffeab171
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
public
class
ProjectileGenerator
:
MonoBehaviour
{
public
GameObject
InstantiateProjectile
(
GameObject
obj
,
Vector3
pos
,
Quaternion
rot
)
{
return
Instantiate
(
obj
,
pos
,
rot
);
}
}
Assets/Scripts/Characters/ProjectileGenerator.cs.meta
deleted
100644 → 0
View file @
ffeab171
fileFormatVersion: 2
guid: df26c325b370e6a4bb7a589984854376
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/Scripts/Item/Items/Bow.cs
View file @
2f7f0143
...
...
@@ -38,5 +38,14 @@ public class Bow : Item {
tmpObj
.
transform
.
localScale
=
new
Vector3
(
Mathf
.
Sign
(
player
.
transform
.
localScale
.
x
),
1
,
1
);
tmpObj
.
GetComponent
<
Rigidbody2D
>().
velocity
=
new
Vector2
(-
10f
*
Mathf
.
Sign
(
player
.
transform
.
localScale
.
x
),
0f
);
}
protected
override
void
PlaySkill2
()
{
player
.
GetComponent
<
Player
>().
StartCoroutine
(
Shoot2
());
}
IEnumerator
Shoot2
()
{
yield
return
new
WaitForSeconds
(
0.3f
);
GameObject
tmpObj
=
Object
.
Instantiate
(
arrow
,
player
.
transform
.
position
,
Quaternion
.
Euler
(
0
,
0
,
-
90f
));
tmpObj
.
GetComponent
<
Rigidbody2D
>().
velocity
=
new
Vector2
(
0f
,
10f
);
}
}
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