public override void Configure(GameObject gameObject) { //Configure game object: this.OnConfigure(gameObject); //Make object online: var hash128 = NetworkHash128.Parse(this.SpawnId); OregoNetworkUtils.SpawnObject(gameObject, hash128); }
public override GameObject Create() { //Create object: var gameObject = base.Create(); //Make object online: var hash128 = NetworkHash128.Parse(this.SpawnId); OregoNetworkUtils.SpawnObject(gameObject, hash128); return(gameObject); }
/** * Util. */ public virtual T GetClientComponent <T>(NetworkInstanceId id) where T : Component => OregoNetworkUtils.FindClientComponent <T>(id);