fix: state management/null target

This commit is contained in:
Chris
2026-01-16 18:17:15 -05:00
parent d9008db1f8
commit ad7c29c5e7
3 changed files with 13 additions and 14 deletions

View File

@@ -38,10 +38,8 @@ namespace Reset.Items{
void SetTarget(){
target = null;
Debug.Log($"{weaponVariables["target"]}, {weaponVariables["target"] as GameObject}");
if (weaponVariables["target"] != null) {
target = (weaponVariables["target"] as Transform);
target = (Transform)weaponVariables["target"];
}
}