仮Game部分 Prefab化

This commit is contained in:
kimura 2022-06-14 16:21:02 +09:00
parent f77c60b67c
commit d92b322ab2
5 changed files with 5416 additions and 4850 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 417e2c534d3274ba1a973fe4284532bd
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -120,9 +120,10 @@ namespace MyGame.Scenes.MiniGame.Scripts
// }).AddTo(this); // }).AddTo(this);
// var basePosY = characterTransform.position.y; // var basePosY = characterTransform.position.y;
// characterTransform.GetComponent<Rigidbody2D>().AddForce(Vector2.up * height, ForceMode2D.Impulse); // characterTransform.GetComponent<Rigidbody2D>().AddForce(Vector2.up * height, ForceMode2D.Impulse);
var cachePos = characterTransform.localPosition;
this.CallLerp(jumpTime, t => this.CallLerp(jumpTime, t =>
{ {
characterTransform.SetLocalPositionY(Mathf.Sin(Mathf.PI * t) * jumpHeight); characterTransform.SetLocalPositionY(cachePos.y + Mathf.Sin(Mathf.PI * t) * jumpHeight);
}, () => }, () =>
{ {
isJump = false; isJump = false;