Code Monkey home page Code Monkey logo

simplefinitestatecontroller's Introduction

Unity Simple State Machine Controller

A simple yet flexible state machine controller written in C# for Unity.

Features

  • Define Custom States: Users can define their own state IDs using an Enum, providing a clear and organized way to manage the state of your game objects.
  • State Node Customization: Each state node can have its own set of actions that are invoked when the state is entered, exited, or during its stay.
  • State Transitioning: The controller provides an easy way to change the current state of the object, with an optional flag to allow repetition of the same state.
  • Update Task Management: The controller provides an UpdateTask() method that can be manually called by the user, allowing you to perform state-specific tasks during the game loop.

Installation

To use the Unity Simple State Machine Controller in your project, you can install it through the Unity Package Manager.

  1. Open your Unity project and navigate to the Window > Package Manager menu.
  2. Click the + button in the top-left corner and select Add package from git URL.
  3. Enter the following URL: https://github.com/Sahraiee/SimpleFiniteStateController.git
  4. Click Add to install the package.

Alternatively, you can manually add the package by following these steps:

  1. Create a manifest.json file in the Packages folder of your Unity project.

  2. Add the following content to the manifest.json file:

    {
      "dependencies": {
        "com.sahracore.simplefinitestatecontroller": "https://github.com/Sahraiee/SimpleFiniteStateController.git"
      }
    }
  3. Save the manifest.json file.

Usage

Contribution

Contributions to this project are welcome! If you find any issues or have suggestions for improvement, feel free to open a new issue or submit a pull request on the GitHub repository.

License

This project is licensed under the MIT License.

simplefinitestatecontroller's People

Contributors

sahraiee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.