Playmaker Forum
PlayMaker Updates & Downloads => Share New Actions => Topic started by: jeanfabre on August 13, 2012, 03:35:31 AM
-
Hi,
following a request: http://hutonggames.com/playmakerforum/index.php?topic=2093.msg9261#msg9261 (http://hutonggames.com/playmakerforum/index.php?topic=2093.msg9261#msg9261)
Please find a simple action that will return the system language of the OS you are running on.
// (c) Copyright HutongGames, LLC 2010-2012. All rights reserved.
using UnityEngine;
namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.Application)]
[Tooltip("Get System Language")]
public class ApplicationGetSystemLanguage : FsmStateAction
{
[RequiredField]
[UIHint(UIHint.Variable)]
[Tooltip("The application language")]
public FsmString language;
public override void Reset()
{
language = null;
}
public override void OnEnter()
{
language.Value = Application.systemLanguage.ToString();
Finish();
}
}
}
bye,
Jean
-
Thank you! and thank you again, Jean! :)