remove unwanted items in some scripts
This commit is contained in:
parent
22972d7455
commit
ee4e31f45f
|
@ -36,6 +36,7 @@ public class PlayerController : Script
|
|||
public bool holdItem { get; set; }
|
||||
public bool isAiming { get; set; }
|
||||
|
||||
[Tooltip("The game object for where the player will respawn to")]
|
||||
public GameObject respawnPoint;
|
||||
private float delayTimer = 0.0f;
|
||||
|
||||
|
|
|
@ -13,16 +13,10 @@ public class Item : Script
|
|||
|
||||
public ItemCategory currCategory;
|
||||
private RigidBody rb;
|
||||
private Collider collider;
|
||||
private bool once = false;
|
||||
|
||||
protected override void awake()
|
||||
{
|
||||
collider = GetComponent<Collider>();
|
||||
if (collider)
|
||||
{
|
||||
collider.GetCollisionShape(0).Density = 1;
|
||||
}
|
||||
rb = GetComponent<RigidBody>();
|
||||
if (rb)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue