remove unwanted items in some scripts

This commit is contained in:
Glence 2022-11-23 19:11:41 +08:00
parent 22972d7455
commit ee4e31f45f
2 changed files with 1 additions and 6 deletions

View File

@ -36,6 +36,7 @@ public class PlayerController : Script
public bool holdItem { get; set; } public bool holdItem { get; set; }
public bool isAiming { get; set; } public bool isAiming { get; set; }
[Tooltip("The game object for where the player will respawn to")]
public GameObject respawnPoint; public GameObject respawnPoint;
private float delayTimer = 0.0f; private float delayTimer = 0.0f;

View File

@ -13,16 +13,10 @@ public class Item : Script
public ItemCategory currCategory; public ItemCategory currCategory;
private RigidBody rb; private RigidBody rb;
private Collider collider;
private bool once = false; private bool once = false;
protected override void awake() protected override void awake()
{ {
collider = GetComponent<Collider>();
if (collider)
{
collider.GetCollisionShape(0).Density = 1;
}
rb = GetComponent<RigidBody>(); rb = GetComponent<RigidBody>();
if (rb) if (rb)
{ {