예제 #1
0
    static void Init()
    {
        EditorWindow.GetWindow(typeof(IM_Manager));
        headTexture  = Resources.Load <Texture>("EditorWindowTextures/headTexture");
        skypeTexture = Resources.Load <Texture>("EditorWindowTextures/skype-icon");
        emailTexture = Resources.Load <Texture>("EditorWindowTextures/email-icon");
        folderIcon   = Resources.Load <Texture>("EditorWindowTextures/folder-icon");

        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");
        }
    }
예제 #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");
        }
    }