Exemple #1
0
 public void AppendFlag(DepressionState state)
 {
     Depression |= state;
 }
Exemple #2
0
 public void RemoveFlag(DepressionState state)
 {
     Depression &= ~state;
 }
Exemple #3
0
 public static Boolean isSet(DepressionState state)
 {
     return ((state & Depression) == state);
 }
Exemple #4
0
 public void startDepression(DepressionState flag)
 {
     this.toSet = flag;
     onGo = 1;
 }
Exemple #5
0
 // schaut ob die Flag vorhanden ist oder nicht und reagiert dementsprechend
 public void setFlag(DepressionState flag)
 {
     if ((Depression & flag) == flag)
         RemoveFlag(flag);
     else
         AppendFlag(flag);
 }
Exemple #6
0
 /// <summary>
 /// 踏みつけジャンプを実行
 /// 点作成攻撃
 /// </summary>
 private void JumpTrampled()
 {
     Jumping();
     isAirDashPossible = true;
     animator.SetBool(isTrampledID, true);
     currentState = new DepressionState(this);
     powerPointCreator.Create(transform.position);
     LockOnRelease();
 }
Exemple #7
0
 /// <summary>
 /// プレイヤーにジャンプさせる
 /// </summary>
 private void Jumping()
 {
     jumpVY = jumpPower;
     currentJumpState = JumpState.Jumping;
     // 正しくアニメーションを遷移させるために接地フラグをfalseに
     animator.SetBool(isGroundedID, false);
     animator.SetTrigger(isJumpID);
     currentState = new DepressionState(this);
 }