Files
Magical-Jumping-Bean/Library/metadata/61/61d491d99e9292c4a81d7d01a74781ea
T

291 lines
15 KiB
Plaintext
Raw Normal View History

2019-09-29 19:40:54 -04:00
í;l2019.2.3f1þÿÿÿÿÿ’3$øÌuñ옲e+ Í=^7€ÿÿÿÿ¦€²Ð¦¦¦€#¦€+H€3ÿÿÿÿ1€1€ÿÿÿÿ@Þ Q€j
H€<ÿÿÿÿ 1€1€ÿÿÿÿ @Þ
Q€jÕ€Iÿÿÿÿ1€1€ÿÿÿÿÀÞH€j€ÿÿÿÿ1€1€ÿÿÿÿ@ÞQ€j€PAssetMetaDataguiddata[0]data[1]data[2]data[3]pathNameoriginalNamelabelsassetStoreRef ÿÿfš†!ë5˜9Ý4QÁóBí7€ÿÿÿÿ¦€²
E Þ€#.€,5a Þ€#.€,€r Þ€# .€,
H€«€ÿÿÿÿ 1€1€ÿÿÿÿ @Þ
Q€jñ€JÿÿÿÿÀ1€1€ÿÿÿÿÞ€j€ÿÿÿÿ\€ÿÿÿÿH€rÿÿÿÿ1€1€ÿÿÿÿ@ÞQ€jH€wÿÿÿÿ1€1€ÿÿÿÿ@ÞQ€jH€€ÿÿÿÿ1€1€ÿÿÿÿ@ÞQ€jy
 Þ€#!.€,"€…ÿÿÿÿ#@1€1€ÿÿÿÿ$Þ%.€j&Õ€“ÿÿÿÿ'1€1€ÿÿÿÿ(ÀÞ)€j€ÿÿÿÿ*H€›€ÿÿÿÿ+1€1€ÿÿÿÿ,@Þ-Q€j.y
 /Þ€#0.€,1 €§2@¾€¶ 3@Þ€#4.€,5H€»ÿÿÿÿ61€1€ÿÿÿÿ7@Þ8Q€j9H€Æÿÿÿÿ:1€1€ÿÿÿÿ;@Þ<Q€j=H€Øÿÿÿÿ>1€1€ÿÿÿÿ?@Þ@Q€jAMonoImporterPPtr<EditorExtension>m_FileIDm_PathIDPPtr<PrefabInstance>m_ExternalObjectsSourceAssetIdentifiertypeassemblynamem_UsedFileIDsm_DefaultReferencesexecutionOrdericonm_UserDatam_AssetBundleNamem_AssetBundleVariantsÿÿ£Gñ×ÜZ56 :!@iÁJ*€7€ÿÿÿÿ¦€²E Þ.(a Þ.€r Þ .
H€«€ÿÿÿÿ 1€1€ÿÿÿÿ @Þ
Q€jH€ê€ÿÿÿÿ1€1€ÿÿÿÿ@ÞQ€jñ€=ÿÿÿÿ1€1€ÿÿÿÿÞ€j€ÿÿÿÿH€›€ÿÿÿÿ1€1€ÿÿÿÿ@ÞQ€jy
 Þ.y€Q Þ. Þ€X!H€iÿÿÿÿ"1€1€ÿÿÿÿ#@Þ$Q€j%H€uÿÿÿÿ&1€1€ÿÿÿÿ'@Þ(Q€j)PPtr<EditorExtension>m_FileIDm_PathIDPPtr<PrefabInstance>m_DefaultReferencesm_Iconm_ExecutionOrderm_ClassNamem_Namespace``\ày¯Àœ'Mé))LŠÑ×zt®5Packages/com.unity.ugui/Runtime/UI/Core/Navigation.csày¯
Navigation8'using System;
using UnityEngine.Serialization;
namespace UnityEngine.UI
{
[Serializable]
/// <summary>
/// Structure storing details related to navigation.
/// </summary>
public struct Navigation : IEquatable<Navigation>
{
/*
* This looks like it's not flags, but it is flags,
* the reason is that Automatic is considered horizontal
* and verical mode combined
*/
[Flags]
/// <summary>
/// Navigation mode enumeration.
/// </summary>
/// <remarks>
/// This looks like it's not flags, but it is flags, the reason is that Automatic is considered horizontal and vertical mode combined
/// </remarks>
/// <example>
/// <code>
/// using UnityEngine;
/// using System.Collections;
/// using UnityEngine.UI; // Required when Using UI elements.
///
/// public class ExampleClass : MonoBehaviour
/// {
/// public Button button;
///
/// void Start()
/// {
/// //Set the navigation to the mode "Vertical".
/// if (button.navigation.mode == Navigation.Mode.Vertical)
/// {
/// Debug.Log("The button's navigation mode is Vertical");
/// }
/// }
/// }
/// </code>
/// </example>
public enum Mode
{
/// <summary>
/// No navigation is allowed from this object.
/// </summary>
None = 0,
/// <summary>
/// Horizontal Navigation.
/// </summary>
/// <remarks>
/// Navigation should only be allowed when left / right move events happen.
/// </remarks>
Horizontal = 1,
/// <summary>
/// Vertical navigation.
/// </summary>
/// <remarks>
/// Navigation should only be allowed when up / down move events happen.
/// </remarks>
Vertical = 2,
/// <summary>
/// Automatic navigation.
/// </summary>
/// <remarks>
/// Attempt to find the 'best' next object to select. This should be based on a sensible heuristic.
/// </remarks>
Automatic = 3,
/// <summary>
/// Explicit navigation.
/// </summary>
/// <remarks>
/// User should explicitly specify what is selected by each move event.
/// </remarks>
Explicit = 4,
}
// Which method of navigation will be used.
[SerializeField]
private Mode m_Mode;
// Game object selected when the joystick moves up. Used when navigation is set to "Explicit".
[SerializeField]
private Selectable m_SelectOnUp;
// Game object selected when the joystick moves down. Used when navigation is set to "Explicit".
[SerializeField]
private Selectable m_SelectOnDown;
// Game object selected when the joystick moves left. Used when navigation is set to "Explicit".
[SerializeField]
private Selectable m_SelectOnLeft;
// Game object selected when the joystick moves right. Used when navigation is set to "Explicit".
[SerializeField]
private Selectable m_SelectOnRight;
/// <summary>
/// Navigation mode.
/// </summary>
public Mode mode { get { return m_Mode; } set { m_Mode = value; } }
/// <summary>
/// Specify a Selectable UI GameObject to highlight when the Up arrow key is pressed.
/// </summary>
/// <example>
/// <code>
/// using UnityEngine;
/// using System.Collections;
/// using UnityEngine.UI; // Required when Using UI elements.
///
/// public class HighlightOnKey : MonoBehaviour
/// {
/// public Button btnSave;
/// public Button btnLoad;
///
/// public void Start()
/// {
/// // get the Navigation data
/// Navigation navigation = btnLoad.navigation;
///
/// // switch mode to Explicit to allow for custom assigned behavior
/// navigation.mode = Navigation.Mode.Explicit;
///
/// // highlight the Save button if the up arrow key is pressed
/// navigation.selectOnUp = btnSave;
///
/// // reassign the struct data to the button
/// btnLoad.navigation = navigation;
/// }
/// }
/// </code>
/// </example>
public Selectable selectOnUp { get { return m_SelectOnUp; } set { m_SelectOnUp = value; } }
/// <summary>
/// Specify a Selectable UI GameObject to highlight when the down arrow key is pressed.
/// </summary>
/// <example>
/// <code>
/// using UnityEngine;
/// using System.Collections;
/// using UnityEngine.UI; // Required when Using UI elements.
///
/// public class HighlightOnKey : MonoBehaviour
/// {
/// public Button btnSave;
/// public Button btnLoad;
///
/// public void Start()
/// {
/// // get the Navigation data
/// Navigation navigation = btnLoad.navigation;
///
/// // switch mode to Explicit to allow for custom assigned behavior
/// navigation.mode = Navigation.Mode.Explicit;
///
/// // highlight the Save button if the down arrow key is pressed
/// navigation.selectOnDown = btnSave;
///
/// // reassign the struct data to the button
/// btnLoad.navigation = navigation;
/// }
/// }
/// </code>
/// </example>
public Selectable selectOnDown { get { return m_SelectOnDown; } set { m_SelectOnDown = value; } }
/// <summary>
/// Specify a Selectable UI GameObject to highlight when the left arrow key is pressed.
/// </summary>
/// <example>
/// <code>
/// using UnityEngine;
/// using System.Collections;
/// using UnityEngine.UI; // Required when Using UI elements.
///
/// public class HighlightOnKey : MonoBehaviour
/// {
/// public Button btnSave;
/// public Button btnLoad;
///
/// public void Start()
/// {
/// // get the Navigation data
/// Navigation navigation = btnLoad.navigation;
///
/// // switch mode to Explicit to allow for custom assigned behavior
/// navigation.mode = Navigation.Mode.Explicit;
///
/// // highlight the Save button if the left arrow key is pressed
/// navigation.selectOnLeft = btnSave;
///
/// // reassign the struct data to the button
/// btnLoad.navigation = navigation;
/// }
/// }
/// </code>
/// </example>
public Selectable selectOnLeft { get { return m_SelectOnLeft; } set { m_SelectOnLeft = value; } }
/// <summary>
/// Specify a Selectable UI GameObject to highlight when the right arrow key is pressed.
/// </summary>
/// <example>
/// <code>
/// using UnityEngine;
/// using System.Collections;
/// using UnityEngine.UI; // Required when Using UI elements.
///
/// public class HighlightOnKey : MonoBehaviour
/// {
/// public Button btnSave;
/// public Button btnLoad;
///
/// public void Start()
/// {
/// // get the Navigation data
/// Navigation navigation = btnLoad.navigation;
///
/// // switch mode to Explicit to allow for custom assigned behavior
/// navigation.mode = Navigation.Mode.Explicit;
///
/// // highlight the Save button if the right arrow key is pressed
/// navigation.selectOnRight = btnSave;
///
/// // reassign the struct data to the button
/// btnLoad.navigation = navigation;
/// }
/// }
/// </code>
/// </example>
public Selectable selectOnRight { get { return m_SelectOnRight; } set { m_SelectOnRight = value; } }
/// <summary>
/// Return a Navigation with sensible default values.
/// </summary>
/// <example>
/// <code>
/// using UnityEngine;
/// using System.Collections;
/// using UnityEngine.UI; // Required when Using UI elements.
///
/// public class ExampleClass : MonoBehaviour
/// {
/// public Button button;
///
/// void Start()
/// {
/// //Set the navigation to the default value. ("Automatic" is the default value).
/// button.navigation = Navigation.defaultNavigation;
/// }
/// }
/// </code>
/// </example>
static public Navigation defaultNavigation
{
get
{
var defaultNav = new Navigation();
defaultNav.m_Mode = Mode.Automatic;
return defaultNav;
}
}
public bool Equals(Navigation other)
{
return mode == other.mode &&
selectOnUp == other.selectOnUp &&
selectOnDown == other.selectOnDown &&
selectOnLeft == other.selectOnLeft &&
selectOnRight == other.selectOnRight;
}