- Home /
Can I make reference/assocation to another component as variable?
For example, I have a Province class, which I use as variable. It also has array of Provinces, which are used to keep in memory which provinces are next to it.
But, instead of having reference to other province, it's an array of more provinces inside of it. How could I possibly make reference/association to other Provinces?
Comment
Your answer
Follow this Question
Related Questions
public class variable in inspector like other components? 1 Answer
Is it possible to set variables for classes? 2 Answers
Modify a variable inside a game object from other object. 1 Answer
Attach a value to an instantiate object and call it in the class of this object 0 Answers
Creating a Prefab and Keeping Original Objects Script Information 0 Answers