Commit b3f8b485 authored by 18류지석's avatar 18류지석

튀어나오는거 메이플같아서 조금 손봄

parent c49671f8
...@@ -87,7 +87,7 @@ Rigidbody2D: ...@@ -87,7 +87,7 @@ Rigidbody2D:
m_Mass: 1 m_Mass: 1
m_LinearDrag: 0 m_LinearDrag: 0
m_AngularDrag: 0.05 m_AngularDrag: 0.05
m_GravityScale: 1 m_GravityScale: 3
m_Material: {fileID: 0} m_Material: {fileID: 0}
m_Interpolate: 0 m_Interpolate: 0
m_SleepingMode: 1 m_SleepingMode: 1
......
...@@ -53,5 +53,5 @@ MonoBehaviour: ...@@ -53,5 +53,5 @@ MonoBehaviour:
m_EditorClassIdentifier: m_EditorClassIdentifier:
droppedPrefab: {fileID: 1610049888013262, guid: ee63f05b79e18ce4bad2c226aa70a28e, droppedPrefab: {fileID: 1610049888013262, guid: ee63f05b79e18ce4bad2c226aa70a28e,
type: 2} type: 2}
popoutStrengthMultiplier: 4 popoutStrengthMultiplier: 9
popoutTime: 0.3 popoutTime: 0.1
...@@ -99,8 +99,8 @@ MonoBehaviour: ...@@ -99,8 +99,8 @@ MonoBehaviour:
droppedLifeStonePrefab: {fileID: 1149595688849768, guid: 8255a117a93935941b32b4aed9b299a0, droppedLifeStonePrefab: {fileID: 1149595688849768, guid: 8255a117a93935941b32b4aed9b299a0,
type: 2} type: 2}
frameBorder: 0.2 frameBorder: 0.2
popoutStrengthMultiplier: 3 popoutStrengthMultiplier: 9
popoutTime: 0.3 popoutTime: 0.1
--- !u!224 &224255635903845628 --- !u!224 &224255635903845628
RectTransform: RectTransform:
m_ObjectHideFlags: 1 m_ObjectHideFlags: 1
......
...@@ -56,7 +56,7 @@ Rigidbody2D: ...@@ -56,7 +56,7 @@ Rigidbody2D:
m_Mass: 1 m_Mass: 1
m_LinearDrag: 0 m_LinearDrag: 0
m_AngularDrag: 0.05 m_AngularDrag: 0.05
m_GravityScale: 1 m_GravityScale: 3
m_Material: {fileID: 0} m_Material: {fileID: 0}
m_Interpolate: 0 m_Interpolate: 0
m_SleepingMode: 1 m_SleepingMode: 1
......
...@@ -87,7 +87,7 @@ Rigidbody2D: ...@@ -87,7 +87,7 @@ Rigidbody2D:
m_Mass: 1 m_Mass: 1
m_LinearDrag: 0 m_LinearDrag: 0
m_AngularDrag: 0.05 m_AngularDrag: 0.05
m_GravityScale: 1 m_GravityScale: 3
m_Material: {fileID: 0} m_Material: {fileID: 0}
m_Interpolate: 0 m_Interpolate: 0
m_SleepingMode: 1 m_SleepingMode: 1
......
...@@ -111,7 +111,7 @@ public class InventoryManager : MonoBehaviour { ...@@ -111,7 +111,7 @@ public class InventoryManager : MonoBehaviour {
void PopoutGenerator(GameObject obj, float popoutStrength) void PopoutGenerator(GameObject obj, float popoutStrength)
{ {
popoutStrength *= popoutStrengthMultiplier; popoutStrength *= popoutStrengthMultiplier;
float angle = Mathf.Deg2Rad * Random.Range(60f, 120f); float angle = Mathf.Deg2Rad * Random.Range(80f, 100f);
obj.GetComponent<Rigidbody2D>().velocity = new Vector2(Mathf.Cos(angle), Mathf.Sin(angle)) * popoutStrength; obj.GetComponent<Rigidbody2D>().velocity = new Vector2(Mathf.Cos(angle), Mathf.Sin(angle)) * popoutStrength;
StartCoroutine(PopoutCoroutine(obj)); StartCoroutine(PopoutCoroutine(obj));
} }
......
...@@ -113,7 +113,7 @@ public class LifeStoneManager : MonoBehaviour { ...@@ -113,7 +113,7 @@ public class LifeStoneManager : MonoBehaviour {
void PopoutGenerator(GameObject obj, float popoutStrength) void PopoutGenerator(GameObject obj, float popoutStrength)
{ {
popoutStrength *= popoutStrengthMultiplier; popoutStrength *= popoutStrengthMultiplier;
float angle = Mathf.Deg2Rad * Random.Range(60f, 120f); float angle = Mathf.Deg2Rad * Random.Range(80f, 100f);
obj.GetComponent<Rigidbody2D>().velocity = new Vector2(Mathf.Cos(angle), Mathf.Sin(angle)) * popoutStrength; obj.GetComponent<Rigidbody2D>().velocity = new Vector2(Mathf.Cos(angle), Mathf.Sin(angle)) * popoutStrength;
StartCoroutine(PopoutCoroutine(obj)); StartCoroutine(PopoutCoroutine(obj));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment