FairyGUI.Transition.Stop C# (CSharp) Method

Stop() public method

public Stop ( bool setToComplete, bool processCallback ) : void
setToComplete bool
processCallback bool
return void
        public void Stop(bool setToComplete, bool processCallback)
        {
            if (_playing)
            {
                _playing = false;
                _totalTasks = 0;
                _totalTimes = 0;
                PlayCompleteCallback func = _onComplete;
                _onComplete = null;

                _owner.internalVisible--;

                int cnt = _items.Count;
                if (_reversed)
                {
                    for (int i = cnt - 1; i >= 0; i--)
                    {
                        TransitionItem item = _items[i];
                        if (item.target == null)
                            continue;

                        StopItem(item, setToComplete);
                    }
                }
                else
                {
                    for (int i = 0; i < cnt; i++)
                    {
                        TransitionItem item = _items[i];
                        if (item.target == null)
                            continue;

                        StopItem(item, setToComplete);
                    }
                }
                if (processCallback && func != null)
                    func();
            }
        }

Same methods

Transition::Stop ( ) : void

Usage Example

    static int Stop(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.Transition)))
            {
                FairyGUI.Transition obj = (FairyGUI.Transition)ToLua.ToObject(L, 1);
                obj.Stop();
                return(0);
            }
            else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.Transition), typeof(bool), typeof(bool)))
            {
                FairyGUI.Transition obj = (FairyGUI.Transition)ToLua.ToObject(L, 1);
                bool arg0 = LuaDLL.lua_toboolean(L, 2);
                bool arg1 = LuaDLL.lua_toboolean(L, 3);
                obj.Stop(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.Transition.Stop"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
All Usage Examples Of FairyGUI.Transition::Stop