private GameObject StationGateway = null; // doesnt have to be station just the gateway this one will connect to public override void OnStartServer() { SetOffline(); registerTile = GetComponent <RegisterTile>(); Position = registerTile.WorldPosition; SubSceneManager.RegisterWorldGateway(this); ServerChangeState(false); }
public override void OnStartServer() { SetOffline(); registerTile = GetComponent <RegisterTile>(); ServerChangeState(false); if (ifWorldGateToWorldGate && StationGateway != null) { SetUpWorldToWorld(); } else if (!ifWorldGateToWorldGate) { SubSceneManager.RegisterWorldGateway(this); } }