arthurdiniz0_outer-math/OuterMath Unity Project/Assets/PlayMaker/Actions/GUILayout/GUILayoutAction.cs
// (c) Copyright HutongGames, LLC 2010-2013. All rights reserved.

using UnityEngine;
using System.Collections.Generic;

namespace HutongGames.PlayMaker.Actions
{
	[Tooltip("GUILayout base action - don't use!")]
	public abstract class GUILayoutAction : FsmStateAction
	{
        [Tooltip("An array of layout options.See <a href=\"http://unity3d.com/support/documentation/ScriptReference/GUILayoutOption.html\" rel=\"nofollow\">GUILayoutOption</a>.")]
		public LayoutOption[] layoutOptions;

		GUILayoutOption[] options;
		
		public GUILayoutOption[] LayoutOptions
		{
			get
			{
				if (options == null)
				{
					options = new GUILayoutOption[layoutOptions.Length];
					for (int i = 0; i < layoutOptions.Length; i++) 
						options[i] = layoutOptions[i].GetGUILayoutOption();
				}
				
				return options;
			}
		}
		
		public override void Reset()
		{
			layoutOptions = new LayoutOption[0];
		}
	}
}