Пример #1
0
 public override void OnThrown()
 {
     foreach (var particleSystem in GetComponentsInChildren <ParticleSystem>())
     {
         particleSystem.Play();
     }
     GetComponent <Collider>().enabled = true;
     ItemUtils.FreezeRigidbodyWithoutPositionY(GetComponent <Rigidbody>());
     Picked = false;
 }
Пример #2
0
        public override void OnThrown()
        {
            Collider collider = GetComponent <Collider>();

            if (collider != null)
            {
                collider.enabled = true;
            }
            ItemUtils.FreezeRigidbodyWithoutPositionY(GetComponent <Rigidbody>());
            Picked = false;
        }
Пример #3
0
        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);
        }