Hi,
I have a problem with custom RCCs. I call TNManager without error, but the RCC never fires.
The only difference compared to your examples is that the RCC function is not static, does it have to be?
TNManager.CreateEx(10, true, patchPrefab, tid, coordSpan, TNManager.playerID);
[TNet.RCC(10)]
public GameObject OnCreate (GameObject prefab, int mastertile, int[] coordspan, int reqPlayer) {....}
Thanks in advance!
Update:
CreateEx does fire, but since the passed gameobject was null (my mistake) it returns without an error (maybe it should at least log something).
Anyway, looking at the TNManager code it seems that if you pass a GO to the CreateEx function it assumes it is one of TNManagers "known" objects, and will not accept just any prefab. Correct?
I am assuming that passing a string path instead leads to it being loaded from Resources regardless of whether it is in the TNManager list or not?
TIA!