SynicObject
Namespace: SynicSugar.P2P
Description
Generate object with UserID.
Properity
API | description |
---|---|
Instantiate | Generate a object for UserID |
AllSpawn | Generate objects for all users(include disconencted user) |
AllSpawnForCurrent | Generate objects for all current Users in Lobby |
using SynicSugar.P2P;
public class p2pSample {
[SerializeField] GameObject playerPrefab;
void ObjectSample(){
SynicObject.Instantiate(userID, playerPrefab);
SynicObject.AllSpawn(playerPrefab);
}
}