Commit 26d17af8 authored by 18신대성's avatar 18신대성 Committed by 18손재민

참탄에 의해 거울이 깨지게 함. 덤으로 카메라터렛도 고침

parent d37db3d0
fileFormatVersion: 2
guid: 32ee0c564afd5274e887a0d0ff2e4ef5
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -21,7 +21,7 @@ public class CameraTurret : MonoBehaviour, IObject, IBreakable, IPlayerInteracto
MapManager.inst.currentMap.clearConditions[GameManager.aTurret].IsDone(1);
if (GameManager.nTurret >= 0)
MapManager.inst.currentMap.clearConditions[GameManager.nTurret].IsDone(1);
Destroy(gameObject);
MapManager.inst.currentMap.RemoveObject(Position);
}
private void OnDestroy()
......
......@@ -7,7 +7,7 @@ public class Mirror : Wall, IBulletInteractor, IBreakable
{
public void Break()
{
Destroy(gameObject);
MapManager.inst.currentMap.RemoveWall(this.mapPos);
}
public void Interact(Bullet bullet)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment