Search Results for

    Show / Hide Table of Contents

    Class Microbe

    Microbes which can mate with and eat each other.

    Inheritance
    System.Object
    KaijuBehaviour
    KaijuController
    Microbe
    Inherited Members
    KaijuController.Agent
    KaijuController.OnAgentPreSetPosition()
    KaijuController.OnAgentSetPosition()
    KaijuController.OnAgentPreSetOrientation()
    KaijuController.OnAgentSetOrientation()
    KaijuController.OnAgentPreSetScale()
    KaijuController.OnAgentSetScale()
    KaijuController.OnMoveSpeed()
    KaijuController.OnMoveAcceleration()
    KaijuController.OnLookSpeed()
    KaijuController.OnAutoRotate()
    KaijuController.OnLookTarget()
    KaijuController.OnMove()
    KaijuController.OnEnabled()
    KaijuController.OnDisabled()
    KaijuController.OnDestroyed()
    KaijuController.OnMovementStarted(KaijuMovement)
    KaijuController.OnMovementStopped(KaijuMovement)
    KaijuController.OnMovementPerformed(KaijuMovement)
    KaijuController.OnAutomaticSense()
    KaijuController.OnSense(KaijuSensor)
    KaijuController.OnSensorEnabled(KaijuSensor)
    KaijuController.OnSensorDisabled(KaijuSensor)
    KaijuController.OnActuatorEnabled(KaijuActuator)
    KaijuController.OnActuatorDisabled(KaijuActuator)
    KaijuController.OnActuatorStarted(KaijuActuator)
    KaijuController.OnActuatorExecuting(KaijuActuator)
    KaijuController.OnActuatorDone(KaijuActuator)
    KaijuController.OnActuatorInterrupted(KaijuActuator)
    KaijuController.OnActuatorFailed(KaijuActuator)
    KaijuBehaviour.OnPreSetPosition
    KaijuBehaviour.OnPreSetPositionGlobal
    KaijuBehaviour.OnSetPosition
    KaijuBehaviour.OnSetPositionGlobal
    KaijuBehaviour.OnPreSetOrientation
    KaijuBehaviour.OnPreSetOrientationGlobal
    KaijuBehaviour.OnSetOrientation
    KaijuBehaviour.OnSetOrientationGlobal
    KaijuBehaviour.OnPreSetScale
    KaijuBehaviour.OnPreSetScaleGlobal
    KaijuBehaviour.OnSetScale
    KaijuBehaviour.OnSetScaleGlobal
    KaijuBehaviour.Position
    KaijuBehaviour.Position3
    KaijuBehaviour.LocalPosition
    KaijuBehaviour.LocalPosition3
    KaijuBehaviour.X
    KaijuBehaviour.LocalX
    KaijuBehaviour.Y
    KaijuBehaviour.LocalY
    KaijuBehaviour.Z
    KaijuBehaviour.LocalZ
    KaijuBehaviour.Orientation
    KaijuBehaviour.LocalOrientation
    KaijuBehaviour.OrientationAngles
    KaijuBehaviour.LocalOrientationAngles
    KaijuBehaviour.OrientationQuaternion
    KaijuBehaviour.LocalOrientationQuaternion
    KaijuBehaviour.OrientationX
    KaijuBehaviour.LocalOrientationX
    KaijuBehaviour.OrientationY
    KaijuBehaviour.LocalOrientationY
    KaijuBehaviour.OrientationZ
    KaijuBehaviour.LocalOrientationZ
    KaijuBehaviour.OrientationQuaternionX
    KaijuBehaviour.LocalOrientationQuaternionX
    KaijuBehaviour.OrientationQuaternionY
    KaijuBehaviour.LocalOrientationQuaternionY
    KaijuBehaviour.OrientationQuaternionZ
    KaijuBehaviour.LocalOrientationQuaternionZ
    KaijuBehaviour.OrientationQuaternionW
    KaijuBehaviour.LocalOrientationQuaternionW
    KaijuBehaviour.LocalScale
    KaijuBehaviour.LocalScaleX
    KaijuBehaviour.LocalScaleY
    KaijuBehaviour.LocalScaleZ
    KaijuBehaviour.GlobalScale
    KaijuBehaviour.GlobalScaleX
    KaijuBehaviour.GlobalScaleY
    KaijuBehaviour.GlobalScaleZ
    KaijuBehaviour.LocalToWorld
    KaijuBehaviour.WorldToLocal
    KaijuBehaviour.Forward
    KaijuBehaviour.Forward3
    KaijuBehaviour.Backwards
    KaijuBehaviour.Up
    KaijuBehaviour.Down
    KaijuBehaviour.Right
    KaijuBehaviour.Left
    KaijuBehaviour.Parent
    KaijuBehaviour.Root
    KaijuBehaviour.ChildCount
    KaijuBehaviour.HasChanged
    KaijuBehaviour.HierarchyCount
    KaijuBehaviour.HierarchyCapacity
    KaijuBehaviour.Layer
    KaijuBehaviour.ComponentCount
    KaijuBehaviour.ActiveInHierarchy
    KaijuBehaviour.ActiveSelf
    KaijuBehaviour.IsStatic
    KaijuBehaviour.Scene
    Namespace: KaijuSolutions.Agents.Exercises.Microbes
    Syntax
    public class Microbe : KaijuController

    Properties

    All

    All microbes currently in the world.

    Declaration
    public static IReadOnlyCollection<Microbe> All { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyCollection<Microbe>

    Cooldown

    The time in seconds the microbe needs to wait before it can KaijuSolutions.Agents.Exercises.Microbes.Microbe.Mate(KaijuSolutions.Agents.Exercises.Microbes.Microbe) again.

    Declaration
    public float Cooldown { get; }
    Property Value
    Type Description
    System.Single

    Decay

    How much Energy this microbe loses per second.

    Declaration
    public float Decay { get; set; }
    Property Value
    Type Description
    System.Single

    Energy

    The current energy of this microbe. This will Decay every second, and this microbe needs energy to stay alive. Walk into EnergyPickup pickups to restore this. Microbes with higher energy levels than other microbes can eat them.

    Declaration
    public float Energy { get; set; }
    Property Value
    Type Description
    System.Single

    OnCooldown

    If this microbe is currently on a cooldown for mating.

    Declaration
    public bool OnCooldown { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    Compatible(Microbe)

    See if this microbe is compatible to mate with another microbe. Note this does not check if either microbe is still on Cooldown for mating. For that, check OnCooldown.

    Declaration
    public bool Compatible(Microbe other)
    Parameters
    Type Name Description
    Microbe other

    The other microbe.

    Returns
    Type Description
    System.Boolean

    If this microbe is compatible to mate with another microbe.

    Eatable(Microbe)

    See if this microbe could eat another microbe. Note this does not check if this has enough Energy to eat the other microbe, being more Energy than the other microbe has.

    Declaration
    public bool Eatable(Microbe other)
    Parameters
    Type Name Description
    Microbe other

    The other microbe.

    Returns
    Type Description
    System.Boolean

    If this microbe could eat another microbe.

    Spawn(KaijuAgent, Single, Vector2, UInt32)

    Spawn a microbe.

    Declaration
    public static void Spawn(KaijuAgent microbePrefab, float energy, Vector2 position, uint identifier)
    Parameters
    Type Name Description
    KaijuAgent microbePrefab

    The prefab to spawn.

    System.Single energy

    The energy level to spawn with.

    Vector2 position

    The position to spawn the microbe at.

    System.UInt32 identifier

    The microbe identifier type.

    Events

    OnEat

    Callback for this microbe eating.

    Declaration
    public event MicrobeAction OnEat
    Event Type
    Type Description
    MicrobeAction

    OnEaten

    Callback for this microbe being eaten.

    Declaration
    public event MicrobeAction OnEaten
    Event Type
    Type Description
    MicrobeAction

    OnEatGlobal

    Global callback for this microbe eating.

    Declaration
    public event MultiMicrobeAction OnEatGlobal
    Event Type
    Type Description
    MultiMicrobeAction

    OnMate

    Callback for this microbe mating.

    Declaration
    public event MicrobeAction OnMate
    Event Type
    Type Description
    MicrobeAction

    OnMateGlobal

    Global callback for this microbe mating.

    Declaration
    public event MultiMicrobeAction OnMateGlobal
    Event Type
    Type Description
    MultiMicrobeAction
    In This Article
    Back to top MIT License © 2026 Kaiju Solutions Inc.