Beispiel #1
0
            public void OnLoadSucc(VehicleEntity vehicle, UnityObject unityObj)
            {
                var vehicleTimer = _contexts.session.serverSessionObjects.VehicleTimer;;

                var data = vehicle.GetDynamicData();

                var go = unityObj.AsGameObject;

                go.transform.position = data.Position;
                go.transform.rotation = data.Rotation;

                vehicle.AddVehicleComponentsPostInit((EVehicleType)vehicle.vehicleAssetInfo.VType, unityObj, _contexts.player, true);

                vehicle.SetTimer(vehicleTimer);
            }