コード例 #1
0
 private void FixedUpdate()
 {
     if (RunnerManager.manager.currentState == GameState.Begin)
     {
         if (!collector.flyMode)
         {
             m_Character.Move(m_Crouch, m_Jump);
             m_Jump = false;
         }
         if (collector.flyMode)
         {
             m_Character.Rotation();
             activeJetPack = Input.GetButton("Fire1");
             if (activeJetPack)
             {
                 m_Character.Fly();
             }
         }
     }
 }