mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-26 05:50:18 +00:00
remove unused code
This commit is contained in:
parent
eb13b25a3f
commit
4a495cfd71
2 changed files with 2 additions and 47 deletions
|
@ -137,50 +137,5 @@ namespace SanAndreasUnity.Net
|
|||
}
|
||||
|
||||
|
||||
public void PedStartedEnteringVehicle(Ped ped)
|
||||
{
|
||||
NetStatus.ThrowIfNotOnServer();
|
||||
|
||||
if (this.isLocalPlayer)
|
||||
return;
|
||||
|
||||
// send message to client
|
||||
this.TargetPedStartedEnteringVehicle(this.connectionToClient, ped.gameObject, ped.CurrentVehicle.gameObject,
|
||||
ped.CurrentVehicleSeatAlignment);
|
||||
}
|
||||
|
||||
[TargetRpc]
|
||||
void TargetPedStartedEnteringVehicle(NetworkConnection conn, GameObject pedGo,
|
||||
GameObject vehicleGo, Vehicle.SeatAlignment seatAlignment)
|
||||
{
|
||||
if (null == pedGo || null == vehicleGo)
|
||||
return;
|
||||
|
||||
pedGo.GetComponent<Ped>().GetStateOrLogError<VehicleEnteringState>()
|
||||
.EnterVehicle(vehicleGo.GetComponent<Vehicle>(), seatAlignment, false);
|
||||
}
|
||||
|
||||
public void PedEnteredVehicle(Ped ped)
|
||||
{
|
||||
NetStatus.ThrowIfNotOnServer();
|
||||
|
||||
if (this.isLocalPlayer)
|
||||
return;
|
||||
|
||||
this.TargetPedEnteredVehicle(this.connectionToClient, ped.gameObject, ped.CurrentVehicle.gameObject,
|
||||
ped.CurrentVehicleSeatAlignment);
|
||||
}
|
||||
|
||||
[TargetRpc]
|
||||
void TargetPedEnteredVehicle(NetworkConnection conn, GameObject pedGo,
|
||||
GameObject vehicleGo, Vehicle.SeatAlignment seatAlignment)
|
||||
{
|
||||
if (null == pedGo || null == vehicleGo)
|
||||
return;
|
||||
|
||||
pedGo.GetComponent<Ped>().GetStateOrLogError<VehicleSittingState>()
|
||||
.EnterVehicle(vehicleGo.GetComponent<Vehicle>(), seatAlignment);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,10 +19,10 @@
|
|||
|
||||
- add option to remove current weapon - for testing
|
||||
|
||||
- send aim/fire input to server
|
||||
|
||||
- sync fire event
|
||||
|
||||
- sync health
|
||||
|
||||
- gun flash doesn't work on client ?
|
||||
|
||||
- weapon sound should be 3d
|
||||
|
|
Loading…
Reference in a new issue