diff --git a/projectMDE/transforms/UGameTransform_modded.qvto b/projectMDE/transforms/UGameTransform_modded.qvto index 31c3d450d87b70774380a352c4c490205073d932..064bccbdcb67a39d5bb6205b30e7d4a7e5f67189 100644 --- a/projectMDE/transforms/UGameTransform_modded.qvto +++ b/projectMDE/transforms/UGameTransform_modded.qvto @@ -326,7 +326,7 @@ helper Unity::GameAction::Action2Body(inout creationCounter: Integer) : String { if(self.oclIsTypeOf(Unity::ObjectCreation)){ var currentCounter: Integer = creationCounter; creationCounter := creationCounter + 1; - return 'Instantiate(createdObject'+creationCounter.toString()+', transform.position + new Vector3('+self.oclAsType(Unity::ObjectCreation).position->at(2).toString()+','+self.oclAsType(Unity::ObjectCreation).position->at(2).toString()+',0), transform.rotation);' + return 'Instantiate(createdObject'+currentCounter.toString()+', transform.position + new Vector3('+self.oclAsType(Unity::ObjectCreation).position->at(2).toString()+','+self.oclAsType(Unity::ObjectCreation).position->at(2).toString()+',0), transform.rotation);' }; log('failed to convert action ' + self.toString());