wire actor wip

This commit is contained in:
minjaesong
2021-07-30 17:48:25 +09:00
parent 4f52b26590
commit f64574db80
12 changed files with 117 additions and 92 deletions

View File

@@ -176,9 +176,9 @@ open class IngameInstance(val batch: SpriteBatch) : Screen {
if (actorContainerActive.size == 0 && actorContainerInactive.size == 0)
throw IllegalArgumentException("Actor with ID $ID does not exist.")
var actor = actorContainerActive.searchFor(ID) { it.referenceID!! }
var actor = actorContainerActive.searchFor(ID) { it.referenceID }
if (actor == null) {
actor = actorContainerInactive.searchFor(ID) { it.referenceID!! }
actor = actorContainerInactive.searchFor(ID) { it.referenceID }
if (actor == null) {
/*JOptionPane.showMessageDialog(