Skip to content

Readme and tutorial minor updates#112

Merged
bazyleu merged 2 commits intomainfrom
feature/readme-minor-updates
Mar 7, 2026
Merged

Readme and tutorial minor updates#112
bazyleu merged 2 commits intomainfrom
feature/readme-minor-updates

Conversation

@bazyleu
Copy link
Copy Markdown
Owner

@bazyleu bazyleu commented Mar 7, 2026

No description provided.

@bazyleu bazyleu self-assigned this Mar 7, 2026
Copilot AI review requested due to automatic review settings March 7, 2026 17:34
@bazyleu bazyleu added the documentation Improvements or additions to documentation label Mar 7, 2026
@bazyleu bazyleu merged commit 51f54e8 into main Mar 7, 2026
6 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates documentation and example code to improve tutorial correctness/clarity for UniState users.

Changes:

  • README: fixes typos/grammar, refines tutorial wording, and updates several code snippets.
  • README + Examples: adjusts dice roll range to match a 6-sided die (1–6) and fixes a log message grammar issue.
  • README: fixes a state machine constructor snippet bug (_logicMachine assignment) and improves naming consistency in popup example methods.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
README.md Documentation/tutorial edits and snippet corrections across getting started + tutorials
Assets/Examples/States/RollDiceState.cs Changes dice roll range to 1–6 (Unity Random.Range int max-exclusive)
Assets/Examples/States/LostState.cs Fixes grammar in log message

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
//Popup prefab (Monobehaviour, view)
public class SimplePopupView : ISimplePopupView, Monobehaviour
// Popup prefab (MonoBehaviour, view)
public class SimplePopupView : ISimplePopupView, MonoBehaviour
Copy link

Copilot AI Mar 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In C#, the base class must be listed before interfaces. MonoBehaviour is a class, so this declaration won’t compile as written; swap the order to inherit from MonoBehaviour first and then implement ISimplePopupView.

Suggested change
public class SimplePopupView : ISimplePopupView, MonoBehaviour
public class SimplePopupView : MonoBehaviour, ISimplePopupView

Copilot uses AI. Check for mistakes.
Comment thread README.md
Comment on lines 162 to 164
It is a good practice to specify target version, UniState uses the `*.*.*` release tag so you can specify a version
like `#1.8.0`. For example `https://github.com/bazyleu/UniState.git?path=Assets/UniState#1.8.0`.
like `#1.9.0`. For example `https://github.com/bazyleu/UniState.git?path=Assets/UniState#1.9.0`.
You can find latest version number [here](https://github.com/bazyleu/UniState/releases).
Copy link

Copilot AI Mar 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The README now uses #1.9.0 as the example tag, but the package version in Assets/UniState/package.json is still 1.8.0. Unless a 1.9.0 release/tag exists, this example will mislead users; consider keeping the example version in sync with the current package/release.

Copilot uses AI. Check for mistakes.
Comment thread README.md

You can add `"com.bazyleu.unistate": "https://github.com/bazyleu/UniState.git?path=Assets/UniState"` (or with version
tag `https://github.com/bazyleu/UniState.git?path=Assets/UniState#1.8.0`) to `Packages/manifest.json`.
tag `https://github.com/bazyleu/UniState.git?path=Assets/UniState#1.9.0`) to `Packages/manifest.json`.
Copy link

Copilot AI Mar 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same version example issue as above: the manifest.json snippet references #1.9.0, which should match an actual released tag (and ideally the package.json version) to avoid users pinning to a non-existent/incorrect version.

Suggested change
tag `https://github.com/bazyleu/UniState.git?path=Assets/UniState#1.9.0`) to `Packages/manifest.json`.
tag `https://github.com/bazyleu/UniState.git?path=Assets/UniState#<version>`) to `Packages/manifest.json`.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants