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
b3f8b485
Commit
b3f8b485
authored
Feb 08, 2019
by
18류지석
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
튀어나오는거 메이플같아서 조금 손봄
parent
c49671f8
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
9 deletions
+9
-9
DroppedItem.prefab
Assets/Prefabs/UI/In-Game UI/InventoryUI/DroppedItem.prefab
+1
-1
InventoryManager.prefab
...Prefabs/UI/In-Game UI/InventoryUI/InventoryManager.prefab
+2
-2
LifeStoneUI.prefab
Assets/Prefabs/UI/In-Game UI/LifeStoneUI.prefab
+2
-2
DroppedLifeUnitPrefab.prefab
...bs/UI/In-Game UI/LifeStoneUI/DroppedLifeUnitPrefab.prefab
+1
-1
goldPotion.prefab
Assets/Prefabs/UI/In-Game UI/LifeStoneUI/goldPotion.prefab
+1
-1
InventoryManager.cs
Assets/Scripts/Item/InventoryManager.cs
+1
-1
LifeStoneManager.cs
...Scripts/UI/In-game UI/LifeStoneScript/LifeStoneManager.cs
+1
-1
No files found.
Assets/Prefabs/UI/In-Game UI/InventoryUI/DroppedItem.prefab
View file @
b3f8b485
...
...
@@ -87,7 +87,7 @@ Rigidbody2D:
m_Mass
:
1
m_LinearDrag
:
0
m_AngularDrag
:
0.05
m_GravityScale
:
1
m_GravityScale
:
3
m_Material
:
{
fileID
:
0
}
m_Interpolate
:
0
m_SleepingMode
:
1
...
...
Assets/Prefabs/UI/In-Game UI/InventoryUI/InventoryManager.prefab
View file @
b3f8b485
...
...
@@ -53,5 +53,5 @@ MonoBehaviour:
m_EditorClassIdentifier
:
droppedPrefab
:
{
fileID
:
1610049888013262
,
guid
:
ee63f05b79e18ce4bad2c226aa70a28e
,
type
:
2
}
popoutStrengthMultiplier
:
4
popoutTime
:
0.
3
popoutStrengthMultiplier
:
9
popoutTime
:
0.
1
Assets/Prefabs/UI/In-Game UI/LifeStoneUI.prefab
View file @
b3f8b485
...
...
@@ -99,8 +99,8 @@ MonoBehaviour:
droppedLifeStonePrefab
:
{
fileID
:
1149595688849768
,
guid
:
8255a117a93935941b32b4aed9b299a0
,
type
:
2
}
frameBorder
:
0.2
popoutStrengthMultiplier
:
3
popoutTime
:
0.
3
popoutStrengthMultiplier
:
9
popoutTime
:
0.
1
---
!u!224
&224255635903845628
RectTransform
:
m_ObjectHideFlags
:
1
...
...
Assets/Prefabs/UI/In-Game UI/LifeStoneUI/DroppedLifeUnitPrefab.prefab
View file @
b3f8b485
...
...
@@ -56,7 +56,7 @@ Rigidbody2D:
m_Mass
:
1
m_LinearDrag
:
0
m_AngularDrag
:
0.05
m_GravityScale
:
1
m_GravityScale
:
3
m_Material
:
{
fileID
:
0
}
m_Interpolate
:
0
m_SleepingMode
:
1
...
...
Assets/Prefabs/UI/In-Game UI/LifeStoneUI/goldPotion.prefab
View file @
b3f8b485
...
...
@@ -87,7 +87,7 @@ Rigidbody2D:
m_Mass
:
1
m_LinearDrag
:
0
m_AngularDrag
:
0.05
m_GravityScale
:
1
m_GravityScale
:
3
m_Material
:
{
fileID
:
0
}
m_Interpolate
:
0
m_SleepingMode
:
1
...
...
Assets/Scripts/Item/InventoryManager.cs
View file @
b3f8b485
...
...
@@ -111,7 +111,7 @@ public class InventoryManager : MonoBehaviour {
void
PopoutGenerator
(
GameObject
obj
,
float
popoutStrength
)
{
popoutStrength
*=
popoutStrengthMultiplier
;
float
angle
=
Mathf
.
Deg2Rad
*
Random
.
Range
(
60f
,
12
0f
);
float
angle
=
Mathf
.
Deg2Rad
*
Random
.
Range
(
80f
,
10
0f
);
obj
.
GetComponent
<
Rigidbody2D
>().
velocity
=
new
Vector2
(
Mathf
.
Cos
(
angle
),
Mathf
.
Sin
(
angle
))
*
popoutStrength
;
StartCoroutine
(
PopoutCoroutine
(
obj
));
}
...
...
Assets/Scripts/UI/In-game UI/LifeStoneScript/LifeStoneManager.cs
View file @
b3f8b485
...
...
@@ -113,7 +113,7 @@ public class LifeStoneManager : MonoBehaviour {
void
PopoutGenerator
(
GameObject
obj
,
float
popoutStrength
)
{
popoutStrength
*=
popoutStrengthMultiplier
;
float
angle
=
Mathf
.
Deg2Rad
*
Random
.
Range
(
60f
,
12
0f
);
float
angle
=
Mathf
.
Deg2Rad
*
Random
.
Range
(
80f
,
10
0f
);
obj
.
GetComponent
<
Rigidbody2D
>().
velocity
=
new
Vector2
(
Mathf
.
Cos
(
angle
),
Mathf
.
Sin
(
angle
))
*
popoutStrength
;
StartCoroutine
(
PopoutCoroutine
(
obj
));
}
...
...
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