summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XLevelScriptTask.cs
blob: 78804d45c412837c48548ad2c670b8ccbc4166f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System;
using XUtliPoolLib;

namespace XMainClient
{
	internal class XLevelScriptTask : XLevelBaseTask
	{
		public string _ScriptName;

		public XLevelScriptTask(XLevelSpawnInfo ls) : base(ls)
		{
		}

		public override bool Execute(float time)
		{
			base.Execute(time);
			XSingleton<XLevelScriptMgr>.singleton.RunScript(this._ScriptName);
			return false;
		}
	}
}