本文整理汇总了C#中FsmVar类的典型用法代码示例。如果您正苦于以下问题:C# FsmVar类的具体用法?C# FsmVar怎么用?C# FsmVar使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FsmVar类属于命名空间,在下文中一共展示了FsmVar类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RefreshValueFromFsmVar
// ONLY WORKS IF THE FSMVAR POINTS TO A REGULAR FSM VARIABLE
public static void RefreshValueFromFsmVar(Fsm fromFsm,FsmVar fsmVar)
{
if (fromFsm==null)
{
return;
}
if (fsmVar==null)
{
return;
}
if (!fsmVar.useVariable)
{
return;
}
switch (fsmVar.Type)
{
case VariableType.Int:
fsmVar.GetValueFrom( (NamedVariable)fromFsm.Variables.GetFsmInt(fsmVar.variableName) );
break;
case VariableType.Float:
fsmVar.GetValueFrom( (NamedVariable)fromFsm.Variables.GetFsmFloat(fsmVar.variableName));
break;
case VariableType.Bool:
fsmVar.GetValueFrom( (NamedVariable)fromFsm.Variables.GetFsmBool(fsmVar.variableName));
break;
case VariableType.Color:
fsmVar.GetValueFrom( (NamedVariable)fromFsm.Variables.GetFsmColor(fsmVar.variableName));
break;
case VariableType.Quaternion:
fsmVar.GetValueFrom( (NamedVariable)fromFsm.Variables.GetFsmQuaternion(fsmVar.variableName));
break;
case VariableType.Rect:
fsmVar.GetValueFrom( (NamedVariable)fromFsm.Variables.GetFsmRect(fsmVar.variableName));
break;
case VariableType.Vector2:
fsmVar.GetValueFrom( (NamedVariable)fromFsm.Variables.GetFsmVector2(fsmVar.variableName));
break;
case VariableType.Vector3:
fsmVar.GetValueFrom( (NamedVariable)fromFsm.Variables.GetFsmVector3(fsmVar.variableName));
break;
case VariableType.Texture:
fsmVar.GetValueFrom( (NamedVariable)fromFsm.Variables.GetFsmVector3(fsmVar.variableName));
break;
case VariableType.Material:
fsmVar.GetValueFrom( (NamedVariable)fromFsm.Variables.GetFsmMaterial(fsmVar.variableName));
break;
case VariableType.String:
fsmVar.GetValueFrom( (NamedVariable)fromFsm.Variables.GetFsmString(fsmVar.variableName));
break;
case VariableType.GameObject:
fsmVar.GetValueFrom( (NamedVariable)fromFsm.Variables.GetFsmGameObject(fsmVar.variableName));
break;
}
}
示例2: Reset
public override void Reset()
{
gameObject = null;
reference = null;
variable = null;
}
示例3: Reset
public override void Reset()
{
this.gameObject = null;
this.reference = null;
this.variable = null;
this.everyFrame = false;
}
示例4: Reset
public override void Reset()
{
customPropertyKey = "My Property";
customPropertyValue = null;
successEvent = null;
failureEvent = null;
}
示例5: Reset
public override void Reset()
{
gameObject = null;
reference = null;
variable = null;
everyFrame = false;
}
示例6: Reset
public override void Reset()
{
this.gameObject = null;
this.key = null;
this.KeyFoundEvent = null;
this.KeyNotFoundEvent = null;
this.result = null;
}
示例7: Reset
public override void Reset()
{
behaviour = null;
methodName = null;
parameters = null;
storeResult = null;
everyFrame = false;
}
示例8: Reset
public override void Reset()
{
gameObject = null;
reference = null;
variable = null;
convertIntToByte = false;
index = null;
}
示例9: Reset
public override void Reset()
{
gameObject = null;
reference = null;
key = null;
//setValueIfKeyExists = null;
variable = null;
}
示例10: Reset
public override void Reset()
{
array = null;
storeValue =null;
index = null;
everyFrame = false;
Repeat = true;
}
示例11: Reset
public override void Reset()
{
array = null;
index = null;
everyFrame = false;
storeValue = null;
indexOutOfRange = null;
}
示例12: Reset
public override void Reset()
{
gameObject = null;
reference = null;
variable = null;
failureEvent = null;
index = null;
}
示例13: Reset
public override void Reset()
{
gameObject = null;
reference = null;
variable = null;
forceResizeIdNeeded = false;
everyFrame = false;
}
示例14: Reset
public override void Reset()
{
gameObject = null;
reference = null;
containsValue = null;
valueFoundEvent = null;
valueNotFoundEvent= null;
variable = null;
}
示例15: Reset
public override void Reset()
{
atIndex = null;
gameObject = null;
failureEvent = null;
result = null;
}