Skip to content

Design/gunner ai - #213

Closed
RaitoFs wants to merge 27 commits into
developfrom
design/GunnerAI
Closed

RaitoFs wants to merge 27 commits into
developfrom
design/GunnerAI

Conversation

@RaitoFs

@RaitoFs RaitoFs commented Oct 15, 2024

Copy link
Copy Markdown
Contributor

やった事

GunnerのAIを追加しました

Related Issue

  • close #~~

動作確認

レビューしてほしいこと

  • [ ]

備考

モーションを付けてない状態です

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@ichiharayuuma

Copy link
Copy Markdown
Contributor

いくつか修正してもらいたいです

  • モーション後のクールタイムをモーションごとに設定できるようにする
  • 攻撃時に弾を出すようにする
  • 攻撃時瞬間移動はしないです
  • 単純な横移動と上からの攻撃だけになってしまっているので複数上に移動したり地上でモーションを続けたりをできるようにしてください

@ichiharayuuma

Copy link
Copy Markdown
Contributor

また、かなり古いブランチになっているのでいったん develop からマージしておきます。

# Conflicts:
#	src/Assets/Prefabs/Gunner.prefab
#	src/Assets/Scenes/GunnerAI/Stage.unity
#	src/Assets/Scenes/Tests/EndScene.unity
@coderabbitai

coderabbitai Bot commented Oct 31, 2024 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited to specific labels.

🏷️ Labels to auto review (1)
  • review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@ichiharayuuma

Copy link
Copy Markdown
Contributor

エラーが出てしまっています

You probably need to add a Animation to the game object "Gunner". Or your script needs to check if the component is attached before using it.
UnityEngine.Animation.get_Item (System.String name) (at <9b89611000504a9585efec19be4faf3b>:0)
GunnerController+<SpecialMoveCoroutine>d__25.MoveNext () (at Assets/Contents/Gunner/Script/GunnerController.cs:168)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <f7237cf7abef49bfbb552d7eb076e422>:0)```

@ichiharayuuma

Copy link
Copy Markdown
Contributor

{B79A8F9B-461D-4C4C-91BA-47251848C2AC}
画像のように地面にいるとき倒れてしまいます

@ichiharayuuma

Copy link
Copy Markdown
Contributor

移動は攻撃によって行われるので仮でいいので弾を移動時に出すようにしてください

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Jan 7, 2025

Copy link
Copy Markdown

✅ Ready to Merge

Test Results Summary for PR #213 - Design/gunner ai

Pull Request Details

#213 origin/develop <- origin/design/GunnerAI

Title: Design/gunner ai

Created At: 2024-10-15T02:14:12Z


✅ Overall Test Results - 43/43 Passed - Total Duration: 1.566s

✅ editmode-results.xml - 38/38 - Passed in 0.429s

✅ playmode-results.xml - 5/5 - Passed in 1.137s


✅ editmode-results.xml - 38/38 - Passed in 0.429s
  • ✅ Editor.Tests.Tests - 2/2 Passed in 0.033s

    • ✅ ResolveAllTest - Passed in 0.012s
    • ✅ ResolveTest - Passed in 0.003s
  • ✅ Editor.Tests.Main.EnemyFactoryTest - 3/3 Passed in 0.03s

    • ✅ Subscribe_EnemyがIEnemyを継承しているかをチェックする - Passed in 0.017s
    • ✅ Subscribe_SettingsIsNull_ThrowsException - Passed in 0.004s
    • ✅ 設定に重複したpairをチェックする - Passed in 0.004s
  • ✅ Editor.Tests.Main.InjectionEditModeTests - 5/5 Passed in 0.183s

    • ✅ Dispose_ShouldSetIsStartedToFalse - Passed in 0.155s
    • ✅ Register_ShouldRegisterPlayerStartInContainer - Passed in 0.013s
    • ✅ Start_ShouldCallGameControllerMethodsIfPlayerSpawned - Passed in 0.005s
    • ✅ Start_ShouldNotStartIfAlreadyStarted - Passed in 0.004s
    • ✅ Start_ShouldThrowExceptionIfPlayerNotSpawned - Passed in 0.003s
  • ✅ Editor.Tests.Model.PlayerModelTest - 15/15 Passed in 0.106s

    • ✅ CanStartSwapが更新されているか - Passed in 0.016s
    • ✅ ChangeStateが反映されているか - Passed in 0.006s
    • ✅ Propertyの個々のフィールドが初期化されているか("CanEndSwap") - Passed in 0.004s
    • ✅ Propertyの個々のフィールドが初期化されているか("CanStartSwap") - Passed in 0.004s
    • ✅ Propertyの個々のフィールドが初期化されているか("CanDagger") - Passed in 0.004s
    • ✅ Propertyの個々のフィールドが初期化されているか("SwapStamina") - Passed in 0.004s
    • ✅ Propertyの個々のフィールドが初期化されているか("DaggerStamina") - Passed in 0.004s
    • ✅ Propertyの個々のフィールドが初期化されているか("Health") - Passed in 0.004s
    • ✅ Propertyの個々のフィールドが初期化されているか("State") - Passed in 0.004s
    • ✅ Propertyの個々のフィールドが初期化されているか("Position") - Passed in 0.004s
    • ✅ TakeDamageでダメージを与えられるか - Passed in 0.005s
    • ✅ UpdatePositionでForwardが更新されているか - Passed in 0.011s
    • ✅ UpdatePositionで座標が更新されているか - Passed in 0.007s
    • ✅ インスタンス作成が成功しているか - Passed in 0.005s
    • ✅ 削除後にDisposableがDisposeされているか - Passed in 0.016s
  • ✅ Editor.Tests.Model.SwapModelTest - 6/6 Passed in 0.029s

    • ✅ ItemのPositionを更新できる - Passed in 0.007s
    • ✅ SwapItem_EqualsがIdのみで識別する - Passed in 0.003s
    • ✅ SwapItem_違う値ならハッシュコードが一致しない - Passed in 0.005s
    • ✅ アイテムを追加して選択中のアイテムを取得できる - Passed in 0.005s
    • ✅ インスタンス作成が成功しているか - Passed in 0.003s
    • ✅ 初期値で選択中のアイテムは存在しない - Passed in 0.003s
  • ✅ Editor.Tests.View.PlayerAnimationExtensionTest - 7/7 Passed in 0.048s

    • ✅ OnAttackTest - Passed in 0.019s
    • ✅ OnDaggerTest - Passed in 0.004s
    • ✅ OnTakeDamageTest - Passed in 0.004s
    • ✅ SetAttackComboCountTest - Passed in 0.004s
    • ✅ SetIsFallingTest - Passed in 0.004s
    • ✅ SetJumpTest - Passed in 0.004s
    • ✅ SetSpeedTest - Passed in 0.004s
✅ playmode-results.xml - 5/5 - Passed in 1.137s
  • ✅ Tests.Core.Utilities.MonoBehaviourExtensionTest - 2/2 Passed in 1.062s

    • ✅ DelayMethod_SimpleAction_ShouldBeCalledAfterDelay - Passed in 0.528s
    • ✅ DelayMethod_WithParameters_ShouldBeCalledWithCorrectParameters - Passed in 0.514s
  • ✅ Tests.Model.PlayerModelPlayModeTest - 1/1 Passed in 0.06s

    • ✅ スタミナが少なくなった時にswapが無効になっているか - Passed in 0.059s
  • ✅ Tests.PlayModeTest - 2/2 Passed in 0.015s

    • ✅ PlayModeTestSimplePasses - Passed in 0.007s
    • ✅ PlayModeTestWithEnumeratorPasses - Passed in 0.006s

✅ Ready to Merge

All tests have passed successfully! This pull request is safe to merge.

@Matuyuhi Matuyuhi closed this May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants