public void SetPosionZone(Vector3 posit) { PollutedArea area = ObjectManager.Instance.pollutedAreaPool.GetItem(); area.Initialize(posit, 5f, 3f, CharacterCondition.InFire, BulletType.EnemyBullet); SoundManager.Instance.PlaySoundEffect("glassbreak"); }
protected override void SetDie() { base.SetDie(); //독지대 PollutedArea pollutedArea = ObjectManager.Instance.pollutedAreaPool.GetItem(); if (pollutedArea != null) { pollutedArea.Initialize(this.transform.position, 2.5f, 2f, CharacterCondition.InPoison, BulletType.EnemyBullet); } }
private void BreakTable() { if (boxCollider != null) { boxCollider.enabled = false; } if (objectShadow != null) { objectShadow.ShadowOff(); } if (myItem != null) { myItem.transform.position -= Vector3.up * 0.3f; } if (NowSelectPassive.Instance.HasPassive(PassiveType.PlayingWithFire) == true) { PollutedArea area = ObjectManager.Instance.pollutedAreaPool.GetItem(); area.Initialize(this.transform.position, 3f, 4f, CharacterCondition.InFire, BulletType.PlayerBullet); } }