Skip to content
Discussion options

You must be logged in to vote

This variable is local, for every script invocation it will be using another instance.
You can declare "static" variable that will persist between multiple script invocations:

static string blockBroken = "";

It should be defined at the beginning of the script. It will get reset if you recompile script.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BamaJoe411
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants