Esempio n. 1
0
    public void OnInit(TileHub host)
    {
//		_host = host;

        _editRenderer.enabled = false;

        CfgFrog fc = host.Prog.GetFrogConfigByIndex(m_frogType);
        FrogHub fh = GameObject.Instantiate(fc.m_prefab, transform) as FrogHub;

        host.State.m_activeFrogs.Add(new FrogController(fh));
    }
Esempio n. 2
0
 void ParseConfigBundle(string assetBundleId, ConfigBundle bundle)
 {
     for (int i = 0; i < bundle.m_levels.Count; ++i)
     {
         CfgLevel lcfg = bundle.m_levels[i];
         _levels.Add(lcfg);
         _levelSaveMap.Add(new KeyValuePair <string, int> (assetBundleId, i));
     }
     for (int i = 0; i < bundle.m_frog.Count; ++i)
     {
         CfgFrog fcfg = bundle.m_frog[i];
         _frogs.Add(fcfg);
     }
     _generalConfig = bundle.m_general;
 }