Class BehaviorComponent
- Namespace
- Lime
- Assembly
- Lime.dll
BehaviorComponent is NodeComponent that used for scripting node behavior.
public class BehaviorComponent : NodeComponent, IDisposable, IAnimable
- Inheritance
-
BehaviorComponent
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
Suspended
Determines if behavior is suspended.
public bool Suspended { get; }
Property Value
Methods
OnOwnerFrozenChanged()
Occurs when the GloballyFrozen property of the owner node changes.
protected virtual void OnOwnerFrozenChanged()
Resume()
Resumes the Update calls.
public bool Resume()
Returns
Start()
Start is called on the frame in which the component had added just before Update method is called first time. Note: Start doesn't called immediately at the time it is adding.
protected virtual void Start()
Stop(Node)
Stop is called immediately after component had removed
protected virtual void Stop(Node owner)
Parameters
owner
NodePrevious owner node.
Suspend()
Stops the Update calls.
public bool Suspend()
Returns
Update(float)
Update is called on every frame if the owner node isn't frozen and the behavior isn't suspended.
protected virtual void Update(float delta)
Parameters
delta
floatElapsed time between frames.