UIProgressBar.Start C# (CSharp) Method

Start() protected method

Register the event listeners.
protected Start ( ) : void
return void
	protected void Start ()
	{
		Upgrade();

		if (Application.isPlaying)
		{
			if (mBG != null) mBG.autoResizeBoxCollider = true;

			OnStart();

			if (current == null && onChange != null)
			{
				current = this;
				EventDelegate.Execute(onChange);
				current = null;
			}
		}
		ForceUpdate();
	}

Usage Example

コード例 #1
0
    static int Start(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        UIProgressBar obj = (UIProgressBar)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIProgressBar");

        obj.Start();
        return(0);
    }
All Usage Examples Of UIProgressBar::Start