ハジケ時間のランダム修正/跳ね返り調整
This commit is contained in:
parent
f8577aa17d
commit
e6d7cdf65c
|
|
@ -29,7 +29,7 @@ public class Corn : MonoBehaviour
|
||||||
rigidbody2D = GetComponent<Rigidbody2D>();
|
rigidbody2D = GetComponent<Rigidbody2D>();
|
||||||
cornSpawnTime = Time.time;
|
cornSpawnTime = Time.time;
|
||||||
var cornPopBasicTime = 5f;
|
var cornPopBasicTime = 5f;
|
||||||
cornPopTime = cornPopBasicTime + Random.Range(0, 5);
|
cornPopTime = cornPopBasicTime + Random.Range(0, 5f);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Update()
|
private void Update()
|
||||||
|
|
|
||||||
|
|
@ -8,4 +8,4 @@ PhysicsMaterial2D:
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_Name: Corn
|
m_Name: Corn
|
||||||
friction: 0.5
|
friction: 0.5
|
||||||
bounciness: 0.4
|
bounciness: 0.6
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ Transform:
|
||||||
m_GameObject: {fileID: 1324329073609281157}
|
m_GameObject: {fileID: 1324329073609281157}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 0.616, y: 0.616, z: 0.616}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
|
|
@ -129,7 +129,7 @@ Rigidbody2D:
|
||||||
m_UseAutoMass: 0
|
m_UseAutoMass: 0
|
||||||
m_Mass: 1
|
m_Mass: 1
|
||||||
m_LinearDrag: 1
|
m_LinearDrag: 1
|
||||||
m_AngularDrag: 5
|
m_AngularDrag: 4
|
||||||
m_GravityScale: 0
|
m_GravityScale: 0
|
||||||
m_Material: {fileID: 6200000, guid: 1e68e56cd6ac4484ba25eb760e0d3057, type: 2}
|
m_Material: {fileID: 6200000, guid: 1e68e56cd6ac4484ba25eb760e0d3057, type: 2}
|
||||||
m_Interpolate: 0
|
m_Interpolate: 0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue