As the title states , Im trying to create a new object using:
Vector3 pos
= new Vector3
(0,
0,
0);Quaternion rot
= Quaternion
.Euler(new Vector3
(0,
0,
0));String playername = TNManager.GetPlayerData<string> ("CharacterName");
TNManager.Instantiate (3, "CreatePlayer", playerprefabPath, false, pos, rot, playername);
I passed all the arguments(rot, pos, playername, but still getting this error....
[TNet] Failed to call function CreatePlayer: parameters do not match signature
Expected args: UnityEngine.GameObject, UnityEngine.Vector3, UnityEngine.Quaternion
Received args: UnityEngine.GameObject, UnityEngine.Vector3, UnityEngine.Quaternion, System.String
Does anyone have an idea on whats wrong?