I think the issue that you faced, is with the fact that FlowCanvas right now, can not access fields, but rather only properties of classes.
If you “Card” class has properties, then they can be accessed normally in FlowCanvas. Here is an example of what I mean.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
publicclassCard{
publicstring_name;
publicfloat_health;
publicstringname{
get{return_name;}
set{_name=value;}
}
publicfloathealth{
get{return_health;}
set{_health=value;}
}
}
As you see above, the Properties of the class can be accessed, but the Fields of the class can not.
You can of course organize your class similar to the above script, where there exist properties with backing fields, but starting from the next version and on, fields will also be possible to be accessed directly. 🙂
If you want, I can send you the new version able to access fields to your registered email.
Let me know.
Thanks.
Join us on Discord: https://discord.gg/97q2Rjh
Attachments:
CardProperties.png
Login
Register
By registering on this website you agree to our Privacy Policy.