Skip to content

Commit 5023488

Browse files
committed
Cleanup
1 parent 5ad29ee commit 5023488

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

Runtime/Code/Luau/LuauCoreCallbacks.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,6 @@ static unsafe int ConstructorCallback(LuauContext context, IntPtr thread, IntPtr
14771477

14781478
LuauCore instance = LuauCore.CoreInstance;
14791479

1480-
System.Object reflectionObject = null;
14811480
Type type = null;
14821481

14831482
//Cast/marshal parameter data

Runtime/Code/Luau/LuauMetadata.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -448,18 +448,18 @@ private object DeserializeIndividualObject(string serializedObjectValue, object
448448
case AirshipComponentPropertyType.AirshipComponent: {
449449
if (objectRef is AirshipComponent scriptBinding) {
450450
var gameObject = scriptBinding.gameObject;
451-
if (!AirshipBehaviourRootV2.HasId(gameObject)) {
452-
// See if it just needs to be started first:
453-
var foundAny = false;
454-
foreach (var binding in gameObject.GetComponents<AirshipComponent>()) {
455-
foundAny = true;
456-
}
457-
458-
// Retry getting AirshipBehaviourRoot:
459-
// if (foundAny) {
460-
// airshipComponent = gameObject.GetComponent<AirshipBehaviourRoot>();
461-
// }
462-
}
451+
// if (!AirshipBehaviourRootV2.HasId(gameObject)) {
452+
// // See if it just needs to be started first:
453+
// var foundAny = false;
454+
// foreach (var binding in gameObject.GetComponents<AirshipComponent>()) {
455+
// foundAny = true;
456+
// }
457+
//
458+
// // Retry getting AirshipBehaviourRoot:
459+
// // if (foundAny) {
460+
// // airshipComponent = gameObject.GetComponent<AirshipBehaviourRoot>();
461+
// // }
462+
// }
463463

464464
if (AirshipBehaviourRootV2.HasId(gameObject)) {
465465
// We need to just pass the unity instance id + component ids to Luau since it's Luau-side

0 commit comments

Comments
 (0)