public override void Reset() { gameObject = null; navigationMode = UnityEngine.UI.Navigation.Mode.Automatic; resetOnExit = false; }
public override void Reset() { gameObject = null; navigationMode = UnityEngine.UI.Navigation.Mode.Automatic; resetOnExit = false; }
public override void OnEnter() { GameObject _go = Fsm.GetOwnerDefaultTarget(gameObject); if (_go!=null) { _selectable = _go.GetComponent<UnityEngine.UI.Selectable>(); } if (_selectable!=null && resetOnExit.Value) { _originalValue = _selectable.navigation.mode; } DoSetValue(); Finish(); }
public override void OnEnter() { GameObject _go = Fsm.GetOwnerDefaultTarget(gameObject); if (_go != null) { _selectable = _go.GetComponent <UnityEngine.UI.Selectable>(); } if (_selectable != null && resetOnExit.Value) { _originalValue = _selectable.navigation.mode; } DoSetValue(); Finish(); }
static StackObject *set_mode_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.UI.Navigation.Mode value = (UnityEngine.UI.Navigation.Mode) typeof(UnityEngine.UI.Navigation.Mode).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method); UnityEngine.UI.Navigation instance_of_this_method; instance_of_this_method = (UnityEngine.UI.Navigation) typeof(UnityEngine.UI.Navigation).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); instance_of_this_method.mode = value; WriteBackInstance(__domain, ptr_of_this_method, __mStack, ref instance_of_this_method); return(__ret); }