Search Unity

Flow Tree: Simple State System

Discussion in 'Assets and Asset Store' started by diddykonga, Dec 22, 2012.

  1. diddykonga

    diddykonga

    Joined:
    Jun 9, 2011
    Posts:
    151
    Hello, i was thinking of creating this for future use, and to easily control different states of certain systems.

    Theres only 3 scripts, but they have good generic functionality built into them.
    Here is a heirarchy of the system,

    Flow Tree Manager ->
    Flow Tree Layer ->
    Flow Tree State

    Every Flow Tree Manager has a list of Flow Tree Layers, and every Flow Tree Layer, a list of Flow Tree States.
    Only one Flow Tree State can be active in a Flow Tree Layer, so keeping separate Flow Tree States that still need easy access to other states, is a breeze.

    Along with only one Flow Tree State being allowed to be active, active Flow Tree States can lock themselves, which requires them to have to be force(boolean paramater) changed.
    Each Flow Tree State has a Check method, which can be used to setup Requirements for them to be set as active.

    If you have any suggestions, features, or complaints, feel free to comment. :)
    View attachment $Assets.rar
     
    Last edited: Dec 22, 2012