Closed Shaunmax closed 4 years ago
Ok what happens if you replace new ["coins", "diamonds"]
with new <String>["coins", "diamonds"]
?
The documentation page has been updated to show the correct way. Let me know if it helps.
The documentation page has been updated to show the correct way. Let me know if it helps.
That fixed the issue! thanks a lot!
When trying to initialize i am getting the following error
[Fault] exception, information=TypeError: Error #1007: Instantiation attempted on a non-constructor.
When I remove the line
.setResourceCurrencies(new ["gems", "coins"])
the error is gone! What is the issue with .setResourceCurrencies(new ["gems", "coins"])
in the above code.Also in the editor i can see red under line : -
but code compiles with no issue!