Skip to content
Snippets Groups Projects
Commit a6350a8c authored by KritzJ's avatar KritzJ
Browse files

Ajudstments to ACtion2Body helper

parent 91354245
No related branches found
No related tags found
No related merge requests found
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment