Beispiel #1
0
    public override void Initial()
    {
        _nextStepBtn = transform.GetComponent <Button>();
        _nextStepBtn.onClick.RemoveAllListeners();
        _nextStepBtn.onClick.AddListener(ClickBtn);

        _oneScene = transform.Find("One") as RectTransform;
        caricaturePlayerController = _oneScene.Find("CaricaturePlayer").GetComponent <CaricaturePlayerController>();

        _twoScene          = transform.Find("Two") as RectTransform;
        nv1_face           = _twoScene.Find("nvzhu_face").GetComponent <Image>();
        twoBubbleComponent = transform.Find("DialogueBox_Bubble_two").GetComponent <DialogueBoxBubbleComponent>();

        _threeScene = transform.Find("Three") as RectTransform;

        _fourScene          = transform.Find("Four") as RectTransform;
        fourImage_nv1_face1 = _fourScene.transform.Find("nv1_face1").GetComponent <Image>();
        fourImage_nv1_face2 = _fourScene.transform.Find("nv1_face2").GetComponent <Image>();
        fourImage_nv3_face  = _fourScene.transform.Find("nv3_face").GetComponent <Image>();
        fourBubbleComponent = transform.Find("DialogueBox_Bubble_four").GetComponent <DialogueBoxBubbleComponent>();

        nextBtn  = transform.Find("NextChapterBtn").GetComponent <Button>();
        nextText = nextBtn.transform.Find("NextChapterText").GetComponent <Text>();

        ShowOneScene();
        OpenClickBtn(false);
        base.Initial();
    }
Beispiel #2
0
    public override void Initial()
    {
        _nextStepBtn = transform.GetComponent <Button>();
        _nextStepBtn.onClick.RemoveAllListeners();
        _nextStepBtn.onClick.AddListener(ClickBtn);

        _oneScene = transform.Find("One") as RectTransform;
        caricaturePlayerController = _oneScene.Find("CaricaturePlayer").GetComponent <CaricaturePlayerController>();

        _twoScene          = transform.Find("Two") as RectTransform;
        twoImage_1         = _twoScene.Find("Image_1").GetComponent <Image>();
        twoImage_2         = _twoScene.Find("Image_2").GetComponent <Image>();
        twoImage_3         = _twoScene.Find("Image_3").GetComponent <Image>();
        twoNvZhuFace_1     = _twoScene.Find("nvzhuFace_1").GetComponent <Image>();
        twoNvZhuFace_2     = _twoScene.Find("nvzhuFace_2").GetComponent <Image>();
        twoNvZhuFace_3     = _twoScene.Find("nvzhuFace_3").GetComponent <Image>();
        twoBubbleComponent = transform.Find("DialogueBox_Bubble_two").GetComponent <DialogueBoxBubbleComponent>();

        _threeScene         = transform.Find("Three") as RectTransform;
        threeubbleComponent = transform.Find("DialogueBox_Bubble_three").GetComponent <DialogueBoxBubbleComponent>();

        buyFlowersController      = transform.Find("BuyFlowers").GetComponent <BuyFlowersController>();
        dialogueBox_BuyFlowersTip = transform.Find("DialogueBox_BuyFlowersTip").GetComponent <DialogueBoxTetragonumComponent>();

        ClickBtn();

        base.Initial();
    }
Beispiel #3
0
    public override void Initial()
    {
        _nextStepBtn = transform.GetComponent <Button>();
        _nextStepBtn.onClick.RemoveAllListeners();
        _nextStepBtn.onClick.AddListener(ClickBtn);
        _oneScene = transform.Find("One") as RectTransform;
        caricaturePlayerController = _oneScene.Find("CaricaturePlayer").GetComponent <CaricaturePlayerController>();

        ShowOneScene();
        OpenClickBtn(false);

        base.Initial();
    }
Beispiel #4
0
    public override void Initial()
    {
        _nextStepBtn = transform.GetComponent <Button>();
        _nextStepBtn.onClick.RemoveAllListeners();
        _nextStepBtn.onClick.AddListener(ClickBtn);

        _oneScene = transform.Find("One") as RectTransform;
        caricaturePlayerController = _oneScene.Find("CaricaturePlayer").GetComponent <CaricaturePlayerController>();

        _twoScene          = transform.Find("Two") as RectTransform;
        twoImage           = _twoScene.Find("Image_1").GetComponent <Image>();
        twoBubbleComponent = transform.Find("DialogueBox_Bubble_two").GetComponent <DialogueBoxBubbleComponent>();


        ShowOneScene();
        OpenClickBtn(false);
        base.Initial();
    }
Beispiel #5
0
    public override void Initial()
    {
        _nextStepBtn = transform.GetComponent <Button>();
        _nextStepBtn.onClick.RemoveAllListeners();
        _nextStepBtn.onClick.AddListener(ClickBtn);
        _oneScene   = transform.Find("One") as RectTransform;
        _twoScene   = transform.Find("Two") as RectTransform;
        _threeScene = transform.Find("Three") as RectTransform;
        _fourScene  = transform.Find("Four") as RectTransform;

        //表情
        nan2Face1  = _oneScene.Find("image/nan2Face1").GetComponent <Image>();
        nan2Face2  = _oneScene.Find("image/nan2Face2").GetComponent <Image>();
        nan2Face3  = _oneScene.Find("image/nan2Face3").GetComponent <Image>();
        nvzhuFace1 = _oneScene.Find("image/nvzhuFace1").GetComponent <Image>();
        nvzhuFace2 = _oneScene.Find("image/nvzhuFace2").GetComponent <Image>();

        bubbleComponent = _oneScene.Find("DialogueBox_Bubble").GetComponent <DialogueBoxBubbleComponent>();
        twoCaricature   = _twoScene.Find("CaricaturePlayer").GetComponent <CaricaturePlayerController>();
        fourCaricature  = _fourScene.Find("CaricaturePlayer").GetComponent <CaricaturePlayerController>();

        top                = _threeScene.Find("QRCode/Top") as RectTransform;
        bottom             = _threeScene.Find("QRCode/Bottom") as RectTransform;
        QRCode             = _threeScene.Find("QRCode") as RectTransform;
        QRCode_name_text   = _threeScene.Find("QRCode/BG/Code/name_text").GetComponent <Text>();
        QRCode_region_text = _threeScene.Find("QRCode/BG/Code/region_text").GetComponent <Text>();
        infoView           = _threeScene.Find("info") as RectTransform;
        name_text          = _threeScene.Find("info/BG/Code/personInfo/name_text").GetComponent <Text>();
        region_text        = _threeScene.Find("info/BG/Code/personInfo/region_text").GetComponent <Text>();
        set_text           = _threeScene.Find("info/BG/Code/personInfo/set_text").GetComponent <Text>();
        friend_text        = _threeScene.Find("info/BG/Code/personInfo/friend_text").GetComponent <Text>();
        more_text          = _threeScene.Find("info/BG/Code/personInfo/more_text").GetComponent <Text>();
        addFriend_btn      = _threeScene.Find("info/BG/Code/addFriend_btn").GetComponent <Button>();
        addFriend_text     = addFriend_btn.transform.Find("Text").GetComponent <Text>();

        nextChapterBtn  = _fourScene.Find("NextChapterBtn").GetComponent <Button>();
        nextChapterText = nextChapterBtn.transform.Find("NextChapterText").GetComponent <Text>();


        ShowOneScene();
        OpenClickBtn(false);

        base.Initial();
    }
Beispiel #6
0
    public override void Initial()
    {
        _nextStepBtn = transform.GetComponent <Button>();
        _nextStepBtn.onClick.RemoveAllListeners();
        _nextStepBtn.onClick.AddListener(ClickBtn);

        _oneScene  = transform.Find("One") as RectTransform;
        Caricature = _oneScene.Find("CaricaturePlayer").GetComponent <CaricaturePlayerController>();

        _twoScene             = transform.Find("Two") as RectTransform;
        dialogueBoxBubble_two = transform.Find("DialogueBox_Bubble_Two").GetComponent <DialogueBoxBubbleComponent>();
        role_nv1      = _twoScene.Find("role_nvzhu1").GetComponent <Image>();
        role_nv2      = _twoScene.Find("role_nvzhu2").GetComponent <Image>();
        role_nan1     = _twoScene.Find("role_nanzhu").GetComponent <Image>();
        role_nan2     = _twoScene.Find("role_nanzhu2").GetComponent <Image>();
        nvface        = role_nv2.transform.Find("role_nvface").GetComponent <Image>();
        nanface       = role_nan2.transform.Find("role_nanface").GetComponent <Image>();
        door1         = _twoScene.Find("door1").GetComponent <Image>();
        door2         = _twoScene.Find("door2").GetComponent <Image>();
        jiantou       = _twoScene.Find("jiantou").GetComponent <Image>();
        lianHongImage = transform.Find("lianHongQ").GetComponent <Image>();
        Triangle      = transform.Find("Triangle").GetComponent <Image>();

        _threeScene             = transform.Find("Three") as RectTransform;
        hotPotController        = _threeScene.Find("HotPot").GetComponent <HotPotController>();
        dialogueBoxBubble_three = transform.Find("DialogueBox_Bubble_Three").GetComponent <DialogueBoxBubbleComponent>();

        _fourScene             = transform.Find("Four") as RectTransform;
        dialogueBoxBubble_four = transform.Find("DialogueBox_Bubble_Four").GetComponent <DialogueBoxBubbleComponent>();
        nanzhuFace             = _fourScene.Find("nanzhuFace").GetComponent <Image>();

        _fiveScene      = transform.Find("Five") as RectTransform;
        Caricature_five = _fiveScene.transform.Find("CaricaturePlayer").GetComponent <CaricaturePlayerController>();

        _sixScene             = transform.Find("Six") as RectTransform;
        dialogueBoxBubble_six = transform.Find("DialogueBox_Bubble_Six").GetComponent <DialogueBoxBubbleComponent>();
        image1 = _sixScene.Find("Image1").GetComponent <Image>();
        image2 = _sixScene.Find("Image2").GetComponent <Image>();
        image3 = _sixScene.Find("Image3").GetComponent <Image>();

        ClickBtn();
        base.Initial();
    }
Beispiel #7
0
    public override void Initial()
    {
        _bgClickBtn = GetComponent <Button>();
        _bgClickBtn.onClick.RemoveAllListeners();
        _bgClickBtn.onClick.AddListener(OnClickBg);
        //_roleImage = transform.Find("Role").GetComponent<Image>();
        _oneRect  = transform.Find("One").GetComponent <RectTransform>();
        _phoneBtn = _oneRect.Find("PhoneBtn").GetComponent <Button>();
        _caricaturePlayerControllerOne = transform.Find("CaricaturePlayer").GetComponent <CaricaturePlayerController>();
        _shoppingController            = transform.Find("Shopping").GetComponent <ShoppingController>();

        _weedingController = transform.Find("Weeding").GetComponent <WeedingController>();

        _phoneBtn.onClick.RemoveAllListeners();
        _phoneBtn.onClick.AddListener(OnClickPhoneBtn);

        OnClickBg();
        base.Initial();
    }
Beispiel #8
0
    public override void Initial()
    {
        _nextStepBtn = transform.GetComponent <Button>();
        _nextStepBtn.onClick.RemoveAllListeners();
        _nextStepBtn.onClick.AddListener(ClickBtn);
        _oneScene    = transform.Find("One") as RectTransform;
        _twocene     = transform.Find("Two") as RectTransform;
        dialogue_One = transform.Find("DialogueBox_Bubble_one").GetComponent <DialogueBoxBubbleComponent>();
        tire_image1  = _oneScene.Find("tire_image1").GetComponent <Image>();
        tire_image2  = _oneScene.Find("tire_image2").GetComponent <Image>();
        tire_image4  = _oneScene.Find("tire_image4").GetComponent <Image>();
        tire_image5  = _oneScene.Find("tire_image5").GetComponent <Image>();

        caricaturePlayerController = _twocene.Find("CaricaturePlayer").GetComponent <CaricaturePlayerController>();
        nextBtn  = _twocene.Find("NextBtn").GetComponent <Button>();
        nextText = nextBtn.transform.Find("Text").GetComponent <Text>();

        ClickBtn();

        base.Initial();
    }
Beispiel #9
0
    public override void Initial()
    {
        _nextStepBtn = transform.GetComponent <Button>();
        _nextStepBtn.onClick.RemoveAllListeners();
        _nextStepBtn.onClick.AddListener(ClickBtn);
        _oneScene = transform.Find("One") as RectTransform;
        _twocene  = transform.Find("Two") as RectTransform;

        tire_image2 = _oneScene.Find("tire_image2").GetComponent <Image>();
        tire_image3 = _oneScene.Find("tire_image3").GetComponent <Image>();
        tire_image4 = _oneScene.Find("tire_image4").GetComponent <Image>();
        //tire_image5 = _oneScene.Find("tire_image5").GetComponent<Image>();

        caricaturePlayerController = _twocene.Find("CaricaturePlayer").GetComponent <CaricaturePlayerController>();
        nextBtn  = _twocene.Find("NextBtn").GetComponent <Button>();
        nextText = nextBtn.transform.Find("Text").GetComponent <Text>();

        ShowOneScene();
        OpenClickBtn(false);

        base.Initial();
    }
Beispiel #10
0
    public override void Initial()
    {
        _nextStepBtn = transform.GetComponent <Button>();
        _nextStepBtn.onClick.RemoveAllListeners();
        _nextStepBtn.onClick.AddListener(ClickBtn);

        _oneScene             = transform.Find("One") as RectTransform;
        dialogueBoxBubble_one = transform.Find("DialogueBox_Bubble_One").GetComponent <DialogueBoxBubbleComponent>();

        _twoScene = transform.Find("Two") as RectTransform;
        caricaturePlayerController_two = _twoScene.Find("CaricaturePlayer").GetComponent <CaricaturePlayerController>();

        _threeScene             = transform.Find("Three") as RectTransform;
        dialogueBoxBubble_three = transform.Find("DialogueBox_Bubble_Three").GetComponent <DialogueBoxBubbleComponent>();

        _fourScene  = transform.Find("Four") as RectTransform;
        dialogueBox = transform.Find("DialogueBox_Tetragonum").GetComponent <DialogueBoxTetragonumComponent>();

        ShowOneScene();
        OpenClickBtn(false);
        base.Initial();
    }
Beispiel #11
0
    public override void Initial()
    {
        _nextStepBtn = transform.GetComponent <Button>();
        _nextStepBtn.onClick.RemoveAllListeners();
        _nextStepBtn.onClick.AddListener(ClickBtn);
        _oneScene = transform.Find("One") as RectTransform;
        _twoScene = transform.Find("Two") as RectTransform;

        walk_image   = _oneScene.Find("walk_image").GetComponent <Image>();              //女主步行
        bubble_image = walk_image.transform.Find("bubble_image").GetComponent <Image>(); //气泡手机
        phone        = bubble_image.transform.Find("phone").GetComponent <Button>();

        //VerticalCartoon = _oneScene.Find("VerticalCartoon").GetComponent<ScrollRect>();//条漫1
        caricaturePlayerController = _twoScene.Find("CaricaturePlayer").GetComponent <CaricaturePlayerController>();


        //tiaoman2 = VerticalCartoon.content.Find("manhua2").GetComponent<Image>();
        departBtn = _twoScene.Find("departBtn").GetComponent <Button>();

        ShowWalk_Image();
        OpenClickBtn(false);
        base.Initial();
    }