public override void OnThrown() { foreach (var particleSystem in GetComponentsInChildren <ParticleSystem>()) { particleSystem.Play(); } GetComponent <Collider>().enabled = true; ItemUtils.FreezeRigidbodyWithoutPositionY(GetComponent <Rigidbody>()); Picked = false; }
public override void OnThrown() { Collider collider = GetComponent <Collider>(); if (collider != null) { collider.enabled = true; } ItemUtils.FreezeRigidbodyWithoutPositionY(GetComponent <Rigidbody>()); Picked = false; }
public override void OnThrown() { ownerPlayerManager = null; ownerCamera = null; Collider collider = GetComponent <Collider>(); if (collider != null) { collider.enabled = true; } ItemUtils.FreezeRigidbodyWithoutPositionY(GetComponent <Rigidbody>()); Picked = false; ObjectPoolManager.INSTANCE.RecyclePool(bulletPool); }