public virtual void Execute() { if (finish == null) { finish = CommandsManager.instance.NextCommand; } }
IEnumerator Download(string url, FinishDel finishFunc) { WWW www = new WWW(url); yield return(www); if (www != null) { finishFunc(www); } www.Dispose(); }
public VirtualCommand SetFinish(FinishDel finish) { this.finish = finish; return(this); }