inkle / ink-unity-integration

Unity integration for the open source ink narrative scripting language.
http://www.inklestudios.com/ink
Other
583 stars 102 forks source link

Inky shows a compilation error where the Unity asset doesn't #161

Closed klootas closed 2 years ago

klootas commented 2 years ago

A beta tester of my game was just hit with what I believe to be a bug in the Unity/Ink integration: Inky shows a compile-time error for this, but the (latest version of the) Unity asset doesn't (it throws in runtime instead):

LIST myList = Item1, Item2, Item3 {not myList == Item2: // Inky: "Can not call use '==' operation on Int and List", Unity - nothing Not Item2 }

klootas commented 2 years ago

My mistake - turns out it was a runtime error in Inky too (I got fooled by the automatic execution). Couldn't this be caught at compile time, though?