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