Exemplo n.º 1
0
        public static void Setup()
        {
            IAbilityDataProvider database;

            if (LSDatabaseManager.TryGetDatabase <IAbilityDataProvider>(out database))
            {
                AbilityDataItem[] interfacers = database.AbilityData;
                for (int i = 0; i < interfacers.Length; i++)
                {
                    AbilityDataItem interfacer = interfacers [i];
                    if (interfacer.Script.Type == null)
                    {
                        //exception or ignore?
                        continue;
                    }
                    CodeInterfacerMap.Add(interfacer.Name, interfacer);
                    TypeInterfacerMap.Add(interfacer.Script.Type, interfacer);
                }
            }
        }
Exemplo n.º 2
0
        public static void Setup()
        {
            IAbilityDataProvider database;

            if (LSDatabaseManager.TryGetDatabase <IAbilityDataProvider>(out database))
            {
                AbilityDataItem[] interfacers = database.AbilityData;
                for (int i = 0; i < interfacers.Length; i++)
                {
                    AbilityDataItem interfacer = interfacers [i];
                    if (interfacer.Script.Type == null)
                    {
                        //exception or ignore?
                        continue;
                    }
                    interfacer.LocalInitialize();
                    CodeInterfacerMap.Add(interfacer.Name, interfacer);
                    TypeInterfacerMap.Add(interfacer.Script.Type, interfacer);

                    //Debug.Log (interfacer.ListenInputCode + ", " + InputCodeManager.GetCodeID (interfacer.ListenInputCode) + ", " + InputCodeManager.GetCodeID ("Stop"));
                    //Debug.Log (interfacer.Name + ", " + interfacer.ListenInputCode + ", " + interfacer.ListenInputID);
                }
            }
        }