mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-17 05:18:27 +00:00
add some commented code related to petrolcap
This commit is contained in:
parent
115821f2da
commit
395bcdcf4b
1 changed files with 18 additions and 0 deletions
|
@ -584,6 +584,24 @@ namespace SanAndreasUnity.Behaviours.Vehicles
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// add petrolcap
|
||||||
|
|
||||||
|
/*
|
||||||
|
if (this.PetrolcapTransform != null)
|
||||||
|
{
|
||||||
|
GameObject petrolcapGo = new GameObject(this.PetrolcapTransform.name, typeof(BoxCollider));
|
||||||
|
petrolcapGo.layer = Vehicle.MeshLayer;
|
||||||
|
petrolcapGo.transform.parent = parent.transform;
|
||||||
|
petrolcapGo.transform.SetPositionAndRotation(this.PetrolcapTransform.position, this.PetrolcapTransform.rotation);
|
||||||
|
|
||||||
|
var boxCollider = petrolcapGo.GetComponent<BoxCollider>();
|
||||||
|
boxCollider.center = VehicleManager.Instance.petrolcapBoxColliderCenter;
|
||||||
|
boxCollider.size = VehicleManager.Instance.petrolcapBoxColliderSize;
|
||||||
|
|
||||||
|
this.PetrolcapUnderHighDetailMeshTransform = petrolcapGo.transform;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue