Exemplo n.º 1
0
 public NetworkBehavior Spawn(PrefabType prefabType, int index = 0, Vector3?position = null, Quaternion?rotation = null, bool sendTransform = true)
 {
     return(Manager.GetType()
            .GetMethod("Instantiate" + prefabType.ToString())
            .Invoke(Manager, new object[] { index, position, rotation, sendTransform }) as NetworkBehavior);
 }