仮Game部分 Prefab化
This commit is contained in:
parent
f77c60b67c
commit
d92b322ab2
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4ce138b900c9541d7afaf0743f1e7ac6
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 417e2c534d3274ba1a973fe4284532bd
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -120,9 +120,10 @@ namespace MyGame.Scenes.MiniGame.Scripts
|
|||
// }).AddTo(this);
|
||||
// var basePosY = characterTransform.position.y;
|
||||
// characterTransform.GetComponent<Rigidbody2D>().AddForce(Vector2.up * height, ForceMode2D.Impulse);
|
||||
var cachePos = characterTransform.localPosition;
|
||||
this.CallLerp(jumpTime, t =>
|
||||
{
|
||||
characterTransform.SetLocalPositionY(Mathf.Sin(Mathf.PI * t) * jumpHeight);
|
||||
characterTransform.SetLocalPositionY(cachePos.y + Mathf.Sin(Mathf.PI * t) * jumpHeight);
|
||||
}, () =>
|
||||
{
|
||||
isJump = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue