Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - refinedgames

Pages: [1]
Windows Phone 8 Help / Windows Phone 8 doesn't compile for Unity 4.3
« on: November 13, 2013, 10:25:40 AM »
Error building Player: Exception: Error: method `System.String System.Text.Encoding::GetString(System.Byte[])` doesn't exist in target framework. It is referenced from PlayMaker.dll at System.String HutongGames.PlayMaker.FsmUtility::ByteArrayToString(System.Byte[]).

I'm using PlayMaker Ver1.7.5.f2 - Windows Phone 8 Version.  Any ideas where to look? 

PlayMaker Help / Sending EventData in C#[SOLVED]
« on: October 25, 2013, 12:25:33 PM »
Hi Guys,
I'm porting from UnityScript to C#.  The following works in US:
Code: [Select]
aiStrategyFSM.Fsm.EventData.IntData = shotTypeIndex; //aiStrategyFSM is my FSM component reference, shotTypeIndex is my int var

The same code in C# throws error: "Static Member 'HutongGames.PlayMaker.Fsm.EventData' cannot be accessed with an instance reference, qualify it with a type name instead.

So according to this thread

I tried the following in C#:
Code: [Select]
Fsm.EventData.IntData = shotType;
aiStrategyFSM.SendEvent(checkStrategy); //send event code
But the Fsm.EventData... line throws an error: "Fsm" does not exist in the current context.  What am I missing?  My C# skills are not great... yet.  :)

Pages: [1]