Search Results for

    Show / Hide Table of Contents

    Class ObjectManager<T, TManager>

    The generic manager for a ManagerObject<TManager> This add a way to create a TreeManager of TreeObjects.

    Inheritance
    Object
    ObjectManager<T, TManager>
    MonsterManager
    TreeObjectManager
    Namespace: TinnyStudios.AIUtility.Impl.Examples.FarmerHero
    Assembly: UtilityAIFramework.dll
    Syntax
    public abstract class ObjectManager<T, TManager> : MonoBehaviour where T : MonoBehaviour, IManagerObject<TManager> where TManager : class
    Type Parameters
    Name Description
    T
    TManager

    Fields

    Objects

    Declaration
    public List<T> Objects
    Field Value
    Type Description
    List<T>

    Prefab

    Declaration
    public T Prefab
    Field Value
    Type Description
    T

    Properties

    ConcreteManager

    Declaration
    public TManager ConcreteManager { get; }
    Property Value
    Type Description
    TManager

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    Int32

    Methods

    Add(T)

    Declaration
    public void Add(T obj)
    Parameters
    Type Name Description
    T obj

    GetFirstOrDefault()

    Declaration
    public T GetFirstOrDefault()
    Returns
    Type Description
    T

    Remove(T)

    Declaration
    public void Remove(T obj)
    Parameters
    Type Name Description
    T obj

    Spawn(Vector3, Quaternion, Transform)

    Declaration
    public T Spawn(Vector3 position, Quaternion rotation, Transform parent = null)
    Parameters
    Type Name Description
    Vector3 position
    Quaternion rotation
    Transform parent
    Returns
    Type Description
    T
    In This Article
    Back to top Generated by DocFX