SHOW:
|
|
- or go back to the newest paste.
| 1 | - | local function phaseOne(self) |
| 1 | + | local phaseOne, phaseTwo --put local names into scope |
| 2 | - | local function phaseTwo(self) |
| 2 | + | function phaseOne(self) |
| 3 | - | transition.to( self, { time=1000, x = 450, onComplete = phaseOne} )
|
| 3 | + | transition.to( self, { time=1000, x = 450, onComplete = phaseTwo} )
|
| 4 | - | end |
| 4 | + | end |
| 5 | - | transition.to( self, { time=1000, x = 25, onComplete = phaseTwo} )
|
| 5 | + | function phaseTwo(self) |
| 6 | - | end |
| 6 | + | transition.to( self, { time=1000, x = 25, onComplete = phaseOne} )
|
| 7 | end | |
| 8 | - | function hangerGun:moveHangerGun() |
| 8 | + | |
| 9 | function hangerGun:moveHangerGun() | |
| 10 | - | transition.to( self.display, { time=1000, x = 450, onComplete = phaseOne} )
|
| 10 | + | |
| 11 | - | end |
| 11 | + | return phaseOne(self) |
| 12 | end |