eimiieee
❔ Question about cache
Hello, I have the following code.
I was reccomended to cache Class1 inside the helpers method as such
var myClass = class1.something;
However, my question is if that is necessary since i already cached the class in Start() and then pass that in the helpers parameters
I hope my question was understandable 🙂
3 replies
Accessing a table in a list of subclasses (unity)
Hello, i'm trying to change a value of a table during runtime.
I have a unity object called manager that is the main, which in turn contains a class called unit, unit contains a list with costumes, along with all the options in a table, where of inside there is a simple bool which i'd like to change from ALLOWED to DISABLED and vice versa, however when i try to access this during runtime it tells me that the object I try access doesn't exit even if i know it's there and, simplified it's something like this
What I doing wrong?
11 replies