ハジケ時間のランダム修正/跳ね返り調整

This commit is contained in:
kimura 2021-06-17 12:27:26 +09:00
parent f8577aa17d
commit e6d7cdf65c
3 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ public class Corn : MonoBehaviour
rigidbody2D = GetComponent<Rigidbody2D>();
cornSpawnTime = Time.time;
var cornPopBasicTime = 5f;
cornPopTime = cornPopBasicTime + Random.Range(0, 5);
cornPopTime = cornPopBasicTime + Random.Range(0, 5f);
}
private void Update()

View File

@ -8,4 +8,4 @@ PhysicsMaterial2D:
m_PrefabAsset: {fileID: 0}
m_Name: Corn
friction: 0.5
bounciness: 0.4
bounciness: 0.6

View File

@ -29,7 +29,7 @@ Transform:
m_GameObject: {fileID: 1324329073609281157}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
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_Father: {fileID: 0}
m_RootOrder: 0
@ -129,7 +129,7 @@ Rigidbody2D:
m_UseAutoMass: 0
m_Mass: 1
m_LinearDrag: 1
m_AngularDrag: 5
m_AngularDrag: 4
m_GravityScale: 0
m_Material: {fileID: 6200000, guid: 1e68e56cd6ac4484ba25eb760e0d3057, type: 2}
m_Interpolate: 0