|
|
|
@ -40,9 +40,9 @@ public class SpritesRoom : Room
|
|
|
|
|
Say("Never mind, you'll feel better soon!"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void OnAnimationEvent(string eventName) |
|
|
|
|
{ |
|
|
|
|
if (eventName == "GreenAnimationFinished") |
|
|
|
|
// This method is called by the Animation Event Listener component on the blue alien. |
|
|
|
|
// When the GreenAlienWalk animation finishes it fires an event which calls this method. |
|
|
|
|
void AlienAnimationFinished() |
|
|
|
|
{ |
|
|
|
|
SetAnimatorTrigger(blueAlienAnim, "Stop"); |
|
|
|
|
|
|
|
|
@ -55,5 +55,4 @@ public class SpritesRoom : Room
|
|
|
|
|
|
|
|
|
|
MoveToRoom(menuRoom); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|