Skip to content

Commit

Permalink
Feature/disallow multiple ev curve instance (#34)
Browse files Browse the repository at this point in the history
* Strict check to disallow multiple instance of TooEvAdjustmentCurve and some chores. [skip ci]

* Version is 0.2.1-preview.

Co-authored-by: higeometry <[email protected]>
  • Loading branch information
H3idi-X and H3idi-X authored Aug 18, 2021
1 parent 33c47b4 commit 4946945
Show file tree
Hide file tree
Showing 15 changed files with 268 additions and 418 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ void OnGUI ()

void Update ()
{

/*
if (Input.GetMouseButton (0)) {
current = 1;
} else if (!isKeepFace) {
} else */ if (!isKeepFace) {
current = Mathf.Lerp (current, 0, delayWeight);
}
anim.SetLayerWeight (1, current);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ void Start ()

// Update is called once per frame
void Update ()
{
{
/*
// ↑キー/スペースが押されたら、ステートを次に送る処理
if (Input.GetKeyDown ("up") || Input.GetButton ("Jump")) {
// ブーリアンNextをtrueにする
Expand All @@ -52,8 +53,9 @@ void Update ()
// ブーリアンBackをtrueにする
anim.SetBool ("Back", true);
}

// "Next"フラグがtrueの時の処理
*/

// "Next"フラグがtrueの時の処理
if (anim.GetBool ("Next")) {
// 現在のステートをチェックし、ステート名が違っていたらブーリアンをfalseに戻す
currentState = anim.GetCurrentAnimatorStateInfo (0);
Expand Down
Loading

0 comments on commit 4946945

Please sign in to comment.