コード例 #1
0
    // Use this for initialization
    void Awake()
    {
        boss = GameObject.Find("Boss Object").GetComponent <Simulation> ();

        TierSetupPanel = GameObject.Find("TierSetupPanel");

        ActionSetupPanel = GameObject.Find("ActionSetupPanel");
        ActionSetupPanel.SetActive(false);

        SpriteSetupPanel = GameObject.Find("SpritesSetupPanel");
        SpriteSetupPanel.SetActive(false);

        ModifiersSetupPanel = GameObject.Find("ModifierSetupPanel");
        ModifiersSetupPanel.SetActive(false);

        ModifiableActionSetupPanel = GameObject.Find("ModifiableActionSetupPanel");
        ModifiableActionSetupPanel.SetActive(false);

        MappingsSetupPanel = GameObject.Find("MappingsSetupPanel");
        MappingsSetupPanel.SetActive(false);

        ParameterSetupPanel = GameObject.Find("ParameterSetupPanel");
        ParameterSetupPanel.SetActive(false);

        setupDataList  = new List <SetupData> ();
        SetupTiersList = new List <string> ();
        ParametersList = new List <string> ();

        ActionList = new List <string> ();
        ActionList.Add("UpperBodyAction");
        ActionList.Add("LowerBodyAction");
        ActionList.Add("HeadFaceAction");
        ActionList.Add("LocationAction");
        ActionList.Add("GazeAction");

        ModifierList = new List <string> ();
        ModifierList.Add("ColorModifier");

        ActionManager           = ActionSetupPanel.GetComponent <ActionManager> ();
        spriteManager           = SpriteSetupPanel.GetComponent <SpriteManager> ();
        modifierManager         = ModifiersSetupPanel.GetComponent <ModifiersManager> ();
        MappingsManager         = MappingsSetupPanel.GetComponent <MappingsManager> ();
        ModifiableActionManager = ModifiableActionSetupPanel.GetComponent <ModifiableActionManager> ();
        ParameterManager        = ParameterSetupPanel.GetComponent <ParameterManager> ();

        loadFile();
        GetUniqueSetupTiers();
        GetUniqueParameters();
    }
コード例 #2
0
 public static void InitLibraries(LuaVM vm)
 {
     UnityOs.InitLuaModule(vm);
     ModifiersManager.InitLuaModule();
     ChunkFinder.InitLuaModule();
     SimpleOrderManager.InitLuaModule();
     GameMoveManager.InitLuaModule();
     AI_Calculation.InitLuaModule();
     PathCalcManager.InitLuaModule();
     FlagManager.InitLuaModule();
     ProgressUnitBar.InitLuaModule();
     LuaChunkManager.InitLuaModule();
     ErrorBar_HTML.InitLuaModule();
     LuaHelper.InitLuaModule();
     ResearchManager.InitLuaModule();
 }
コード例 #3
0
ファイル: Modifier.cs プロジェクト: SilentGamzee/Evolo.Mine
 public void Remove()
 {
     eventTable.Clear();
     vars.Clear();
     ModifiersManager.AddToRemove(this);
 }