I've made a money/shop system by taking apart the countdown timer playmaker sample.I've been trying to get it to work with Royce Kimmons Dialogue script.In game there's no problems and it works fine,but when I go back to the editor and try to view the action window I get this error and the action window is empty and only goes back to normal if I close unity and restart it.
NotSupportedException: The invoked member is not supported in a dynamic module.
System.Reflection.Emit.AssemblyBuilder.GetExportedTypes ()
HutongGames.PlayMakerEditor.FsmEditorUtility.BuildActionsList ()
HutongGames.PlayMakerEditor.FsmEditorUtility.get_Actionslist ()
HutongGames.PlayMakerEditor.ActionSelector.BuildFilteredList ()
HutongGames.PlayMakerEditor.ActionSelector.OnFocus ()
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
I know that the problem only comes when this script is activated by the dialogue editor,
var BuyHealth : PlayMakerFSM;
BuyHealth = gameObject.Find("GavzMoneyThing").GetComponent.<PlayMakerFSM>();
BuyHealth.Fsm.Event("BuyHealth");
I'm useless at scripting but have spent hours trying to solve the problem and have searched forums etc for solutions.I'm guessing(hoping) it's just that I haven't done the scripting thing right.Any suggestions would be greatly appreciated.Here is a pic of where the script is for anyone unfamiliar with Royce Kimmons Dialogue editor.