Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

nickeltin1/utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 

Repository files navigation

utils

Different universal utility scripts for unity

#Mine:

  1. Singletons UnconsistentSingleton - generic singleton which loads from resource folder if not presented on scene, not consist over scenes ConsistentSingleton - inherets from UnconsistentSingleton, but consists over scenes

  2. Object Pools PoolBase - abstract class wich containts base pool fields and abstract Get() and AddToPool() methods Pool - contains regural Pool and generic Pool both of them inherets form PoolBase, regural Pool uses Transform as poolObject, generic Pool uses PoolObject PoolObject - MonoBehaviour with its Pool reference

  3. State Machine StateMachine - regural class, but with StateMachine engine as MonoBehaviour, uses Update, FixedUpdate unity events, different state mschines can be merged to work on one engine, for better performance There is main state which runs always State - class containing all actions for state: onUpdate, onFixedUpdate, onStateStart, onStateEnd Trsnsition between states is specified in state itself, as yourStateMachine.SwitchState(Enum type) Each stae should be provided with its Enum value for type States itn state machine added in code, with .AddState(State newState), state can be overrided

  4. Save System Inherit class that need to be saved form Saveable, provide it with ID (save file name) and .Register() it SaveType - clear class for all data that need to be stored

  5. Extensions Different extension methods for Vectors, Integer, Floats, Transform, Color...

#Not mine:

Localization PathCreator NaughtyAttributes LeanTween

About

Different universal scripts for unity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages