I'm having trouble sending a message triggered by a player.
Situation
Player enters a trigger, triggers in Playmaker -> Send message -> EndLevel
as seen here
http://i.imgur.com/6mILudi.png
Run the level It's fine while in Unity, however,
when I do an actual build and test, it does not work at all and i get the debug error..
http://i.imgur.com/HuQj0Pp.pngThe message is recived by the script here
#region EndGame
void EndGame()
{
// Play sound
audio.PlayOneShot (endLevel);
// Grab and set the starRating
SetScore();
// Mark level complete and unlock next level
MarkLevelCompleted();
// Save money
saveStats();
// Save stats
savePlayer();
// next level
// MadLevelManager.MadLevel.LoadNext();
// go to select
MadLevelManager.MadLevel.LoadLevelByName("LevelSelect");
}
#endregion
Not sure, how and why
Any ideas?