public override void Reset() { transformTarget = new FsmGameObject { UseVariable = true}; vectorTarget = new FsmVector3 { UseVariable = true}; time = 1f; axis = iTweenFsmAction.AxisRestriction.none; }
public override void Reset() { placeHolder = null; placeHolderDefined = null; foundEvent = null; notFoundEvent = null; }
public override void Reset() { gameObject = null; fsmName = ""; setValue = null; everyFrame = false; }
public override void Reset() { gameObject = null; reference = null; mesh = null; everyFrame = false; }
public override void Reset() { gameObject = null; storeNextChild = null; loopEvent = null; finishedEvent = null; }
public override void Reset() { broadcastEvent = null; gameObject = null; sendToChildren = false; excludeSelf = false; }
public override void Reset() { gameObject = null; connectedBody = new FsmGameObject { UseVariable = true }; breakForce = new FsmFloat { UseVariable = true }; breakTorque = new FsmFloat { UseVariable = true }; anchor = new FsmVector3 { UseVariable = true }; axis = new FsmVector3 { UseVariable = true }; useSpring = new FsmBool { UseVariable = true }; spring = new FsmFloat { UseVariable = true }; damper = new FsmFloat { UseVariable = true }; targetPosition = new FsmFloat { UseVariable = true }; useMotor = new FsmBool { UseVariable = true }; targetVelocity = new FsmFloat { UseVariable = true }; force = new FsmFloat { UseVariable = true }; freeSpin = new FsmBool { UseVariable = true }; useLimits = new FsmBool { UseVariable = true }; min = new FsmFloat { UseVariable = true }; max = new FsmFloat { UseVariable = true }; minBounce = new FsmFloat { UseVariable = true }; maxBounce = new FsmFloat { UseVariable = true }; everyFrame = false; }
public override void Reset() { this.gameObject = null; this.reference = null; this.mesh = null; this.everyFrame = false; }
public override void Reset() { base.Reset(); this.id = new FsmString { UseVariable = true }; this.time = 1f; this.delay = 0f; this.loopType = iTween.LoopType.none; this.vector = new FsmVector3 { UseVariable = true }; this.speed = new FsmFloat { UseVariable = true }; this.space = Space.World; this.orientToPath = false; this.lookAtObject = new FsmGameObject { UseVariable = true }; this.lookAtVector = new FsmVector3 { UseVariable = true }; this.lookTime = 0f; this.axis = iTweenFsmAction.AxisRestriction.none; }
public override void Reset() { gameObject = null; storeIntValue = null; storeNameValue = null; everyFrame = false; }
public override void Reset() { gameObject = null; reference = null; mesh = null; }
public override void Reset() { this.ArrayListReference = string.Empty; this.store = null; this.foundEvent = null; this.notFoundEvent = null; }
public override void Reset() { this.gameObject = null; this.childName = string.Empty; this.withTag = "Untagged"; this.storeResult = null; }
public override void Reset() { this.gameObject = null; this.storeNextChild = null; this.loopEvent = null; this.finishedEvent = null; }
public override void Reset() { trigger = TriggerType.OnTriggerEnter; collideTag = "Untagged"; sendEvent = null; storeCollider = null; }
public override void Reset() { gameObject = null; withTag = "Untagged"; mustBeVisible = false; storeObject = null; }
public override void Reset() { gameObject = null; target = null; storeResult = null; everyFrame = true; }
public override void Reset() { gameObjectHit = null; point = null; normal = null; distance = null; }
public override void Reset() { trigger = PlayMakerUnity2d.Trigger2DType.OnTriggerEnter2D; collideTag = new FsmString(){UseVariable=true}; sendEvent = null; storeCollider = null; }
public override void Reset() { ArrayListReference = ""; store = null; foundEvent = null; notFoundEvent = null; }
public override void Reset() { this.broadcastEvent = null; this.gameObject = null; this.sendToChildren = false; this.excludeSelf = false; }
public override void Reset() { gameObject = null; compareTo = new FsmString[1]; sendEvent = new FsmEvent[1]; everyFrame = false; }
public override void Reset() { gameObject = null; parent = null; resetLocalPosition = null; resetLocalRotation = null; }
public override void Reset() { fromObject = new FsmGameObject { UseVariable = true} ; fromPosition = new FsmVector3 { UseVariable = true}; direction = new FsmVector3 { UseVariable = true}; color = Color.white; }
public override void Reset() { transformRotation = new FsmGameObject { UseVariable = true}; vectorRotation = new FsmVector3 { UseVariable = true }; time = 1f; space = Space.World; }
public override void Reset() { objectName = ""; withTag = "Untagged"; store = null; TagDoesntExistEvent = null; }
public override void Reset() { gameObject = null; bone = HumanBodyBones.Hips; boneAsString = new FsmString(){UseVariable=false}; boneGameObject = null; }
public override void Reset() { gameObject = null; childName = ""; withTag = "Untagged"; storeResult = null; }
public override void Reset() { sendToFsmComponent = null; sendToGameObject = null; fsmName = ""; sendToChildren = false; broadcastToAll = false; }
public override void Reset() { gameObject = null; spawnPoint = null; position = new FsmVector3 { UseVariable = true }; rotation = new FsmVector3 { UseVariable = true }; storeObject = null; }
public override void Reset() { gameObject = null; storeResult = null; everyFrame = false; }
public override void Reset() { cameraTarget = null; ConstantScreenSize = true; distanceBase = null; }
public override void Reset() { CategoryName = ""; TemplateObject = null; TemplateIndex = 0; }
public override void Reset() { base.Reset(); StoreResult = null; }
public override void Reset() { firstGameObject = null; secondGameObject = null; storePoint = null; }
public override void Reset() { base.Reset(); target = null; }
public static bool ApplyValueToFsmVar(Fsm fromFsm, FsmVar fsmVar, object value) { if (fromFsm == null) { return(false); } if (fsmVar == null) { return(false); } if (value == null) { if (fsmVar.Type == VariableType.Bool) { FsmBool _target = fromFsm.Variables.GetFsmBool(fsmVar.variableName); _target.Value = false; } else if (fsmVar.Type == VariableType.Color) { FsmColor _target = fromFsm.Variables.GetFsmColor(fsmVar.variableName); _target.Value = Color.black; } else if (fsmVar.Type == VariableType.Int) { FsmInt _target = fromFsm.Variables.GetFsmInt(fsmVar.variableName); _target.Value = 0; } else if (fsmVar.Type == VariableType.Float) { FsmFloat _target = fromFsm.Variables.GetFsmFloat(fsmVar.variableName); _target.Value = 0f; } else if (fsmVar.Type == VariableType.GameObject) { FsmGameObject _target = fromFsm.Variables.GetFsmGameObject(fsmVar.variableName); _target.Value = null; } else if (fsmVar.Type == VariableType.Material) { FsmMaterial _target = fromFsm.Variables.GetFsmMaterial(fsmVar.variableName); _target.Value = null; } else if (fsmVar.Type == VariableType.Object) { FsmObject _target = fromFsm.Variables.GetFsmObject(fsmVar.variableName); _target.Value = null; } else if (fsmVar.Type == VariableType.Quaternion) { FsmQuaternion _target = fromFsm.Variables.GetFsmQuaternion(fsmVar.variableName); _target.Value = Quaternion.identity; } else if (fsmVar.Type == VariableType.Rect) { FsmRect _target = fromFsm.Variables.GetFsmRect(fsmVar.variableName); _target.Value = new Rect(0, 0, 0, 0); } else if (fsmVar.Type == VariableType.String) { FsmString _target = fromFsm.Variables.GetFsmString(fsmVar.variableName); _target.Value = ""; } else if (fsmVar.Type == VariableType.String) { FsmTexture _target = fromFsm.Variables.GetFsmTexture(fsmVar.variableName); _target.Value = null; } else if (fsmVar.Type == VariableType.Vector2) { FsmVector2 _target = fromFsm.Variables.GetFsmVector2(fsmVar.variableName); _target.Value = Vector2.zero; } else if (fsmVar.Type == VariableType.Vector3) { FsmVector3 _target = fromFsm.Variables.GetFsmVector3(fsmVar.variableName); _target.Value = Vector3.zero; } #if PLAYMAKER_1_8 else if (fsmVar.Type == VariableType.Enum) { FsmEnum _target = fromFsm.Variables.GetFsmEnum(fsmVar.variableName); _target.ResetValue(); } else if (fsmVar.Type == VariableType.Array) { FsmArray _target = fromFsm.Variables.GetFsmArray(fsmVar.variableName); _target.Reset(); } #endif return(true); } System.Type valueType = value.GetType(); //Debug.Log("valueType "+valueType); System.Type storageType = null; // Debug.Log("fsmVar type "+fsmVar.Type); switch (fsmVar.Type) { case VariableType.Int: storageType = typeof(int); break; case VariableType.Float: storageType = typeof(float); break; case VariableType.Bool: storageType = typeof(bool); break; case VariableType.Color: storageType = typeof(Color); break; case VariableType.GameObject: storageType = typeof(GameObject); break; case VariableType.Quaternion: storageType = typeof(Quaternion); break; case VariableType.Rect: storageType = typeof(Rect); break; case VariableType.String: storageType = typeof(string); break; case VariableType.Texture: storageType = typeof(Texture2D); break; case VariableType.Vector2: storageType = typeof(Vector2); break; case VariableType.Vector3: storageType = typeof(Vector3); break; case VariableType.Object: storageType = typeof(Object); break; case VariableType.Material: storageType = typeof(Material); break; #if PLAYMAKER_1_8 case VariableType.Enum: storageType = typeof(System.Enum); break; case VariableType.Array: storageType = typeof(System.Array); break; #endif } bool ok = true; if (!storageType.Equals(valueType)) { ok = false; if (storageType.Equals(typeof(Object))) // we are ok { ok = true; } #if PLAYMAKER_1_8 if (storageType.Equals(typeof(System.Enum))) // we are ok { ok = true; } #endif if (!ok) { if (valueType.Equals(typeof(double))) // we are ok { ok = true; } if (valueType.Equals(typeof(System.Int64))) // we are ok { ok = true; } if (valueType.Equals(typeof(System.Byte))) // we are ok { ok = true; } } } if (!ok) { Debug.LogError("The fsmVar value <" + storageType + "> doesn't match the value <" + valueType + "> on state" + fromFsm.ActiveStateName + " on fsm:" + fromFsm.Name + " on GameObject:" + fromFsm.GameObjectName); return(false); } if (valueType == typeof(bool)) { FsmBool _target = fromFsm.Variables.GetFsmBool(fsmVar.variableName); _target.Value = (bool)value; } else if (valueType == typeof(Color)) { FsmColor _target = fromFsm.Variables.GetFsmColor(fsmVar.variableName); _target.Value = (Color)value; } else if (valueType == typeof(int)) { FsmInt _target = fromFsm.Variables.GetFsmInt(fsmVar.variableName); _target.Value = System.Convert.ToInt32(value); } else if (valueType == typeof(byte)) { FsmInt _target = fromFsm.Variables.GetFsmInt(fsmVar.variableName); _target.Value = System.Convert.ToInt32(value); } else if (valueType == typeof(System.Int64)) { if (fsmVar.Type == VariableType.Int) { FsmInt _target = fromFsm.Variables.GetFsmInt(fsmVar.variableName); _target.Value = System.Convert.ToInt32(value); } else if (fsmVar.Type == VariableType.Float) { FsmFloat _target = fromFsm.Variables.GetFsmFloat(fsmVar.variableName); _target.Value = System.Convert.ToSingle(value); } } else if (valueType == typeof(float)) { FsmFloat _target = fromFsm.Variables.GetFsmFloat(fsmVar.variableName); _target.Value = (float)value; } else if (valueType == typeof(double)) { FsmFloat _target = fromFsm.Variables.GetFsmFloat(fsmVar.variableName); _target.Value = System.Convert.ToSingle(value); } else if (valueType == typeof(GameObject)) { FsmGameObject _target = fromFsm.Variables.GetFsmGameObject(fsmVar.variableName); _target.Value = (GameObject)value; } else if (valueType == typeof(Material)) { FsmMaterial _target = fromFsm.Variables.GetFsmMaterial(fsmVar.variableName); _target.Value = (Material)value; } else if (valueType == typeof(Object) || storageType == typeof(Object)) { FsmObject _target = fromFsm.Variables.GetFsmObject(fsmVar.variableName); _target.Value = (Object)value; } else if (valueType == typeof(Quaternion)) { FsmQuaternion _target = fromFsm.Variables.GetFsmQuaternion(fsmVar.variableName); _target.Value = (Quaternion)value; } else if (valueType == typeof(Rect)) { FsmRect _target = fromFsm.Variables.GetFsmRect(fsmVar.variableName); _target.Value = (Rect)value; } else if (valueType == typeof(string)) { FsmString _target = fromFsm.Variables.GetFsmString(fsmVar.variableName); _target.Value = (string)value; } else if (valueType == typeof(Texture2D)) { FsmTexture _target = fromFsm.Variables.GetFsmTexture(fsmVar.variableName); _target.Value = (Texture2D)value; } else if (valueType == typeof(Vector2)) { FsmVector2 _target = fromFsm.Variables.GetFsmVector2(fsmVar.variableName); _target.Value = (Vector2)value; } else if (valueType == typeof(Vector3)) { FsmVector3 _target = fromFsm.Variables.GetFsmVector3(fsmVar.variableName); _target.Value = (Vector3)value; #if PLAYMAKER_1_8 } else if (valueType.BaseType == typeof(System.Enum)) { FsmEnum _target = fromFsm.Variables.GetFsmEnum(fsmVar.variableName); _target.Value = (System.Enum)value; #endif } else { Debug.LogWarning("?!?!" + valueType); // don't know, should I put in FsmObject? } return(true); }
// this gets overridden by AudioPlay... //public FsmFloat volume; public override void Reset() { movieTexture = null; gameObject = null; //volume = 1; }
public override void Reset() { logLevel = LogLevel.Info; gameObject = null; }
public override void Reset() { gameObject = null; toGameObject = null; storeResult = null; }
public override void Reset() { GameObject = null; base.Reset(); }
public override void Reset() { objectName = ""; withTag = "Untagged"; store = null; }
public override void Reset() { TextToMatch = ""; HowToMatch = MatchType.StartsWith; Store = null; }
public override void Reset() { base.Reset(); turnBaseManager = null; }
public override void Reset() { gameObject = null; bone = HumanBodyBones.Hips; boneGameObject = null; }
public override void Reset() { this.gameObject = null; this.childIndex = 0; this.store = null; }
public override void Reset() { gameObject = null; targetCamera = null; everyFrame = false; }
public override void Reset() { this.withTag = "Untagged"; this.storeResult = null; this.everyFrame = false; }
public override void Reset() { storeGameObject = null; }
public override void Reset() { gameObject = null; }
public override void Reset() { storeResult = null; }
public override void Reset() { gameObject = null; destination = null; triggerThreshold = 1; }
public override void Reset() { gameObject = null; target = null; proxy = null; }
public override void Reset() { highlightObjectPrefab = null; gameObject = null; everyFrame = false; }
//public FsmEvent sendEvent; //DelayedEvent delayedEvent; public override void Reset() { gameObject = null; delay = 0; //sendEvent = null; }
public override void Reset() { gameObject = null; childName = ""; storeResult = null; }
public override void Reset() { eventType = ""; gameObjectParam = null; }
public override void Reset() { gameObject = null; connectedBody = new FsmGameObject { UseVariable = true }; breakForce = new FsmFloat { UseVariable = true }; breakTorque = new FsmFloat { UseVariable = true }; anchor = new FsmVector3 { UseVariable = true }; axis = new FsmVector3 { UseVariable = true }; useSpring = new FsmBool { UseVariable = true }; spring = new FsmFloat { UseVariable = true }; damper = new FsmFloat { UseVariable = true }; targetPosition = new FsmFloat { UseVariable = true }; useMotor = new FsmBool { UseVariable = true }; targetVelocity = new FsmFloat { UseVariable = true }; force = new FsmFloat { UseVariable = true }; freeSpin = new FsmBool { UseVariable = true }; useLimits = new FsmBool { UseVariable = true }; min = new FsmFloat { UseVariable = true }; max = new FsmFloat { UseVariable = true }; #if UNITY_PRE_5_1 minBounce = new FsmFloat { UseVariable = true }; maxBounce = new FsmFloat { UseVariable = true }; #else bounceMinVelocity = new FsmFloat { UseVariable = true }; bounciness = new FsmFloat { UseVariable = true }; contactDistance = new FsmFloat { UseVariable = true }; #endif everyFrame = false; }
public override void Reset() { base.Reset(); gameObject = null; to = new FsmVector3 { UseVariable = false }; toGameObject = new FsmGameObject { UseVariable = false }; setRelative = new FsmBool { UseVariable = false, Value = false }; duration = new FsmFloat { UseVariable = false }; setSpeedBased = new FsmBool { UseVariable = false, Value = false }; startDelay = new FsmFloat { Value = 0 }; playInReverse = new FsmBool { UseVariable = false, Value = false }; setReverseRelative = new FsmBool { UseVariable = false, Value = false }; startEvent = null; finishEvent = null; finishImmediately = new FsmBool { UseVariable = false, Value = false }; stringAsId = new FsmString { UseVariable = false }; tagAsId = new FsmString { UseVariable = false }; startDelay = new FsmFloat { Value = 0 }; selectedEase = DOTweenActionsEnums.SelectedEase.EaseType; easeType = Ease.Linear; loops = new FsmInt { Value = 0 }; loopType = LoopType.Restart; autoKillOnCompletion = new FsmBool { Value = true }; recyclable = new FsmBool { Value = false }; updateType = UpdateType.Normal; isIndependentUpdate = new FsmBool { Value = false }; debugThis = new FsmBool { Value = false }; }
public override void Reset() { base.Reset(); output = null; }