Fixed bug causing for the wrong symbol and colour to display from the weakpoint after a correct hit

This commit is contained in:
Gregory Campbell
2020-04-14 23:49:30 -04:00
parent b85b18956f
commit 6fe1ba77bd
+4
View File
@@ -542,6 +542,10 @@ public class GMScript : MonoBehaviour
} else {
EnemyParts[6].transform.GetChild(0).GetComponent<SpriteRenderer>().color =
SetColour(EnemyKillSequence[0]);
EnemyParts[6].transform.GetChild(1).GetComponent<SpriteRenderer>().sprite =
Symbols[EnemyKillSequence[0]];
EnemyParts[6].transform.GetChild(1).GetComponent<SpriteRenderer>().color =
SetColour(EnemyKillSequence[0]);
}
}