25 lines
573 B
C#
25 lines
573 B
C#
// (c) Copyright HutongGames, LLC 2010-2013. All rights reserved.
|
|
|
|
using UnityEngine;
|
|
using System.Collections.Generic;
|
|
|
|
namespace HutongGames.PlayMaker.Actions
|
|
{
|
|
[ActionCategory(ActionCategory.GUILayout)]
|
|
[Tooltip("End a centered GUILayout block started with GUILayoutBeginCentered.")]
|
|
public class GUILayoutEndCentered : FsmStateAction
|
|
{
|
|
public override void Reset()
|
|
{
|
|
}
|
|
|
|
public override void OnGUI()
|
|
{
|
|
GUILayout.EndVertical();
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.EndVertical();
|
|
}
|
|
}
|
|
} |