Class MultiCondition<TCondition1, TCondition2>
Base class for conditions that interact with two traits at once This handles all the necessary wiring of making sure the SubConditions are properly serialized, available for queries and that each SubCondition has a proper reference back to the host
Inherited Members
Namespace: Unity.MARS
Syntax
public class MultiCondition<TCondition1, TCondition2> : MultiConditionBase, ISimulatable, IComponentHost<ICondition>, ISerializationCallbackReceiver where TCondition1 : SubCondition, ICondition, new()
where TCondition2 : SubCondition, ICondition, new()
Type Parameters
Name | Description |
---|---|
TCondition1 | The type of the first SubCondition |
TCondition2 | The type of the second SubCondition |
Constructors
MultiCondition()
Declaration
public MultiCondition()
Fields
m_Condition1
Declaration
protected TCondition1 m_Condition1
Field Value
Type | Description |
---|---|
TCondition1 |
m_Condition2
Declaration
protected TCondition2 m_Condition2
Field Value
Type | Description |
---|---|
TCondition2 |
Methods
OnAfterDeserialize()
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Declaration
public void OnBeforeSerialize()