コード例 #1
0
    static void Init()
    {
        EditorWindow.GetWindow(typeof(UIManagerEditor));
        headTexture  = Resources.Load <Texture>("EditorWindowTextures/headTexture");
        skypeTexture = Resources.Load <Texture>("EditorWindowTextures/skypeIcon");
        emailTexture = Resources.Load <Texture>("EditorWindowTextures/emailIcon");
        folderIcon   = Resources.Load <Texture>("EditorWindowTextures/folderIcon");

        Object itemDatabase = Resources.Load("ItemDataBase");

        if (itemDatabase == null)
        {
            itemDatabaseList = CreateItemDataBase.createItemDatabase();
        }
        else
        {
            itemDatabaseList = (ItemDataBaseList)Resources.Load("ItemDatabase");
        }

        Object attributeDatabase = Resources.Load("AttributeDatabase");

        if (attributeDatabase == null)
        {
            itemAttributeList = CreateAttributeDatabase.createItemAttributeDatabase();
        }
        else
        {
            itemAttributeList = (ItemAttributeList)Resources.Load("AttributeDatabase");
        }

        Object inputManager = Resources.Load("InputManager");
    }
コード例 #2
0
ファイル: IM_Manager.cs プロジェクト: znickz59/RPG
    static void Init()
    {
        GetWindow(typeof(ItemManager));

        Object itemDatabase = Resources.Load("ItemDatabase");

        if (itemDatabase == null)
        {
            inventoryItemList = CreateItemDatabase.createItemDatabase();
        }
        else
        {
            inventoryItemList = (ItemDataBaseList)Resources.Load("ItemDatabase");
        }

        Object attributeDatabase = Resources.Load("AttributeDatabase");

        if (attributeDatabase == null)
        {
            itemAttributeList = CreateAttributeDatabase.createItemAttributeDatabase();
        }
        else
        {
            itemAttributeList = (ItemAttributeList)Resources.Load("AttributeDatabase");
        }

        Object inputManager = Resources.Load("InputManager");

        if (inputManager == null)
        {
            inputManagerDatabase = CreateInputManager.createInputManager();
        }
        else
        {
            inputManagerDatabase = (InputManager)Resources.Load("InputManager");
        }
    }