From 03de3a068d8b0fcf3848a857133644e811439c85 Mon Sep 17 00:00:00 2001 From: in0finite Date: Thu, 23 May 2019 01:35:47 +0200 Subject: [PATCH] Remove unused code --- Assets/Scripts/Behaviours/Vehicles/Vehicle.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Assets/Scripts/Behaviours/Vehicles/Vehicle.cs b/Assets/Scripts/Behaviours/Vehicles/Vehicle.cs index 98c5c015..6926bec2 100644 --- a/Assets/Scripts/Behaviours/Vehicles/Vehicle.cs +++ b/Assets/Scripts/Behaviours/Vehicles/Vehicle.cs @@ -159,23 +159,13 @@ namespace SanAndreasUnity.Behaviours.Vehicles bool m_isServer => Net.NetStatus.IsServer; public bool IsControlledByLocalPlayer => Ped.Instance != null && Ped.Instance.CurrentVehicle == this && Ped.Instance.CurrentVehicleSeat.IsDriver; -#if CLIENT - protected override void OnAwake() - { - _props = new MaterialPropertyBlock(); - base.OnAwake(); - } -#else - // Must review private void Awake() { _props = new MaterialPropertyBlock(); } -#endif - public void SetColors(params int[] clrIndices) { for (var i = 0; i < 4 && i < clrIndices.Length; ++i)