Commit 338dc35a authored by 18손재민's avatar 18손재민

머지함

parent 49c2853e
...@@ -564,7 +564,7 @@ AnimatorState: ...@@ -564,7 +564,7 @@ AnimatorState:
m_IKOnFeet: 0 m_IKOnFeet: 0
m_WriteDefaultValues: 1 m_WriteDefaultValues: 1
m_Mirror: 0 m_Mirror: 0
m_SpeedParameterActive: 0 m_SpeedParameterActive: 1
m_MirrorParameterActive: 0 m_MirrorParameterActive: 0
m_CycleOffsetParameterActive: 0 m_CycleOffsetParameterActive: 0
m_TimeParameterActive: 0 m_TimeParameterActive: 0
......
...@@ -34,7 +34,7 @@ Transform: ...@@ -34,7 +34,7 @@ Transform:
m_PrefabInternal: {fileID: 100100000} m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1704656476422024} m_GameObject: {fileID: 1704656476422024}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 48, y: 0, z: -2} m_LocalPosition: {x: 96, y: 0, z: -2}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
......
...@@ -997,6 +997,11 @@ Prefab: ...@@ -997,6 +997,11 @@ Prefab:
value: value:
objectReference: {fileID: 11400000, guid: b556ab3a4d3d2db4b89081d94cca006c, objectReference: {fileID: 11400000, guid: b556ab3a4d3d2db4b89081d94cca006c,
type: 2} type: 2}
- target: {fileID: 114144154128578016, guid: afe4a2cb44239b649a3ffa70af5c2d84,
type: 2}
propertyPath: timeToFallTetrimino
value: 5
objectReference: {fileID: 0}
m_RemovedComponents: [] m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: afe4a2cb44239b649a3ffa70af5c2d84, type: 2} m_SourcePrefab: {fileID: 100100000, guid: afe4a2cb44239b649a3ffa70af5c2d84, type: 2}
m_IsPrefabAsset: 0 m_IsPrefabAsset: 0
......
...@@ -116,12 +116,12 @@ public class PlayerController : MonoBehaviour ...@@ -116,12 +116,12 @@ public class PlayerController : MonoBehaviour
if (GameManager.gameState == GameState.Ingame && MapManager.isDoorWorking != true) if (GameManager.gameState == GameState.Ingame && MapManager.isDoorWorking != true)
{ {
/*
if (playerState == PlayerState.Attack) if (playerState == PlayerState.Attack)
{ {
rb.gravityScale = rb.velocity.y < 0 ? rbAttackGravityScale : rbGravityScale; rb.gravityScale = rbGravityScale;
} }
*/
if (isGrounded) if (isGrounded)
isJumpable = true; isJumpable = true;
if (playerState != PlayerState.Attack) if (playerState != PlayerState.Attack)
...@@ -230,7 +230,6 @@ public class PlayerController : MonoBehaviour ...@@ -230,7 +230,6 @@ public class PlayerController : MonoBehaviour
float xVelocity = rb.velocity.x; float xVelocity = rb.velocity.x;
float yVelocity = rb.velocity.y; float yVelocity = rb.velocity.y;
float airResistance = isGrounded ? 1f : 0.5f; float airResistance = isGrounded ? 1f : 0.5f;
playerState = PlayerState.Idle;
float direction = Mathf.Sign(xVelocity); float direction = Mathf.Sign(xVelocity);
xVelocity = Mathf.Abs(xVelocity) - deceleration * airResistance * Time.fixedDeltaTime; xVelocity = Mathf.Abs(xVelocity) - deceleration * airResistance * Time.fixedDeltaTime;
if (xVelocity < 0) xVelocity = 0; if (xVelocity < 0) xVelocity = 0;
......
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