Exemplo n.º 1
0
    void OnLoad()
    {
        children = transform.GetComponentsInChildren <AssetBundler>().ToList();

        for (int i = 0; i < children.Count; i++)
        {
            AssetBundler ab = children[i];
            ab.disableRetryDialog();
            ab.setAction(
                (o) =>
            {
                NextDownlaod();
            },
                (str) =>
            {
                NextDownlaod();
            },
                (str) =>
            {
                fsm.SendFsmEvent("FAIL");
            });
        }

        fsm.SendFsmEvent("DO_WAIT");
    }