Hi,
I was wondering.
If I call a function on other object and transmit current object as parameter - does it transmits a copy of it or a reference to current object?
So if I modify smth in other object - it will be modified in current?
public class Current {
public int Value = 0;
void Start() {
ReferenceClass.Instance.SetCurrentValue(this);
}
}
public class ReferenceClass {
...
SetCurrentValue(Current Obj) {
Obj.Value = 10;
}
}