playMaker

Author Topic: application quit  (Read 1996 times)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
application quit
« on: April 13, 2011, 07:24:39 AM »
Hi,

 Just a simple application quit action.


Code: [Select]
using UnityEngine;

namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.GameLogic)]
[Tooltip("Quit the application")]
public class ApplicationQuit : FsmStateAction
{

public override void OnEnter()
{
Debug.Log("APPLICATION QUIT");
Application.Quit();
Finish();
}
}
}

Bye,

 Jean