예제 #1
0
    protected override void Ready(Object arg1)
    {
        base.Ready(arg1);

        OneLevelPlane         = BumUITool.GetUIComponent <Transform>(skin.transform, "OneLevel");
        Editor_Button         = BumUITool.GetUIComponent <Transform>(OneLevelPlane, "Editor_Button");
        Particular_Button     = BumUITool.GetUIComponent <Transform>(OneLevelPlane, "Particular_Button");
        TwoLevelPlane         = BumUITool.GetUIComponent <Transform>(skin.transform, "TwoLevel");
        EditorPlane           = BumUITool.GetUIComponent <Transform>(TwoLevelPlane, "EditorPlane");
        Editor_Destory_Button = BumUITool.GetUIComponent <Transform>(EditorPlane, "Editor_Destory_Button");
        Editor_Move_Button    = BumUITool.GetUIComponent <Transform>(EditorPlane, "Editor_Move_Button");
        Editor_Rotate_Button  = BumUITool.GetUIComponent <Transform>(EditorPlane, "Editor_Rotate_Button");
        Editor_Scale_Button   = BumUITool.GetUIComponent <Transform>(EditorPlane, "Editor_Scale_Button");
        Editor_Home_Button    = BumUITool.GetUIComponent <Transform>(EditorPlane, "Editor_Home_Button");
        ParticularPlane       = BumUITool.GetUIComponent <Transform>(TwoLevelPlane, "ParticularPlane");
        Particular_OverviewOfEquipment_Button = BumUITool.GetUIComponent <Transform>(ParticularPlane, "Particular_OverviewOfEquipment_Button");
        Particular_BimFrom_Button             = BumUITool.GetUIComponent <Transform>(ParticularPlane, "Particular_BimFrom_Button");
        Particular_Explode_Button             = BumUITool.GetUIComponent <Transform>(ParticularPlane, "Particular_Explode_Button");
        Particular_PrinciplePlay_Button       = BumUITool.GetUIComponent <Transform>(ParticularPlane, "Particular_PrinciplePlay_Button");
        Particular_Home_Button = BumUITool.GetUIComponent <Transform>(ParticularPlane, "Particular_Home_Button");
        OneLevelPlane.gameObject.AddComponent <Sort>();
        //modelMenuPage.TwoLevelPlane.gameObject.AddComponent<Sort>();
        EditorPlane.gameObject.AddComponent <Sort>();
        ParticularPlane.gameObject.AddComponent <Sort>();
    }
예제 #2
0
    protected override void Awake()
    {
        image = BumUITool.GetUIComponent <RawImage>(this.transform, "RawImage");
        DrapButton button = this.gameObject.AddComponent <DrapButton>();

        button.onPointerDownDele  = onPointerDown;
        button.onPointerUpDele    = onPointerUp;
        button.onDragDele         = onPointDrag;
        button.onPointerClickDele = onClick;
    }
예제 #3
0
    protected override void Ready(Object arg1)
    {
        base.Ready(arg1);
        RectTransform skin = (arg1 as GameObject).transform as RectTransform;

        skin.anchoredPosition3D = new Vector3(0, 0, 2);
        skin.localScale         = new Vector3(0.001196975F, 0.001196975F, 0.001196975F);
        LoginPlane          = BumUITool.GetUIComponent <Transform>(skin, "EnterBackGround");
        enterMainPageButton = BumUITool.GetUIComponent <Button>(LoginPlane, "EnterButton");
        setButton           = BumUITool.GetUIComponent <Button>(LoginPlane, "SetButton");
        SetPlane            = BumUITool.GetUIComponent <Transform>(skin, "SetBackGround");
        toggleButton        = BumUITool.AddUIComponent <ToggleButton>(SetPlane, "GroupToggle/item/toggleButton");
        backLoginPageButton = BumUITool.GetUIComponent <Button>(SetPlane, "BackButton");
        BumUITool.SetActionFalse(SetPlane.gameObject);
    }
예제 #4
0
    protected override void Ready(UnityEngine.Object arg1)
    {
        base.Ready(arg1);
        RectTransform skin = (arg1 as GameObject).transform as RectTransform;

        skin.anchoredPosition3D = new Vector3(0f, 0f, 2);
        skin.localScale         = new Vector3(0.00120576F, 0.00120576F, 0.00120576F);
        ProductPlane            = BumUITool.GetUIComponent <Transform>(skin, "Plane");
        //DownPlane = UITool.GetUIComponent<Transform>(ProductPlane, "DownBackGround");
        //downRemoveButton = UITool.GetUIComponent<Button>(DownPlane,"Remove");
        AdjustPlane = BumUITool.GetUIComponent <Transform>(ProductPlane, "AdjustBackGround");
        BumUITool.AddUIComponent <ProductPageDragView>(AdjustPlane.gameObject);
        adjustButton  = BumUITool.GetUIComponent <Button>(AdjustPlane, "Adjust");
        hideButton    = BumUITool.GetUIComponent <Button>(AdjustPlane, "Hide");
        extendButton  = BumUITool.GetUIComponent <Button>(skin, "Extend");
        producScroll  = BumUITool.AddUIComponent <ProductScrollView>(ProductPlane, "ProducctPlane/ProductScroll");
        adjustConfirm = BumUITool.GetUIComponent <Transform>(ProductPlane, "AdjustConfirm");
        downButton    = BumUITool.GetUIComponent <Button>(adjustConfirm, "Down");
        cancelButton  = BumUITool.GetUIComponent <Button>(adjustConfirm, "Cancel");
        BumUITool.SetActionFalse(extendButton.gameObject);
        BumUITool.SetActionFalse(downButton.gameObject);
        BumUITool.SetActionFalse(cancelButton.gameObject);
        BumUITool.SetActionFalse(extendButton.gameObject);
    }