Commit 65960185 authored by 18신대성's avatar 18신대성

더이상 참탄이 벽을 부수지 않음

parent ba6b0e6d
fileFormatVersion: 2
guid: ae6df86ab9243f74f8c5e9aab2cbca92
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
...@@ -14,7 +14,6 @@ public class TruthBullet : Bullet ...@@ -14,7 +14,6 @@ public class TruthBullet : Bullet
{ {
other.GetComponent<IBulletInteractor>().Interact(this); other.GetComponent<IBulletInteractor>().Interact(this);
} }
Debug.Log(other.name);
Destroy(gameObject); Destroy(gameObject);
} }
} }
...@@ -17,10 +17,6 @@ public class Mirror : Wall, IBulletInteractor, IBreakable ...@@ -17,10 +17,6 @@ public class Mirror : Wall, IBulletInteractor, IBreakable
// Make reflected objects // Make reflected objects
CopyObjects(PlayerController.inst.currentPlayer); CopyObjects(PlayerController.inst.currentPlayer);
} }
else if (bullet is TruthBullet)
{
// Break Mirror
}
} }
/// <summary> /// <summary>
......
...@@ -6,11 +6,7 @@ public class NormalWall : Wall, IBulletInteractor ...@@ -6,11 +6,7 @@ public class NormalWall : Wall, IBulletInteractor
{ {
public void Interact(Bullet bullet) public void Interact(Bullet bullet)
{ {
if (bullet is TruthBullet) if (bullet is MirrorBullet)
{
Destroy(gameObject);
}
else if (bullet is MirrorBullet)
{ {
MapManager.inst.currentMap.ChangeToMirror(mapPos); MapManager.inst.currentMap.ChangeToMirror(mapPos);
} }
......
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