Ejemplo n.º 1
0
    public void EnterHuXingFloor(CameraUniversalCenter camCenter, string floorName, CanveGroupFade triggerFastMoveSM, ScrollMenu fastMoveSM)
    {
        DisplayAllFloorMesh();

        currentAtFloor.floorName = "";


        foreach (floor f in allFloor)
        {
            if (f.floorName == floorName)
            {
                currentAtFloor = f;

                isMYing = true;
                camCenter.ChangeCamera(f.cameraUniversal, 0.5f);

                if (f.pointForMove2 != null && f.pointForMove2.Length > 0)
                {
                    fastMoveSM.GetComponent <RectTransform>().DOAnchorPosY(60, 1);
                    triggerFastMoveSM.AlphaPlayForward();

                    string[] displayGroup = new string[f.pointForMove2.Length];
                    string[] paraGroup    = new string[f.pointForMove2.Length];

                    for (int i = 0; i < f.pointForMove2.Length; i++)
                    {
                        displayGroup[i] = f.pointForMove2[i].name;
                        paraGroup[i]    = i.ToString();
                    }

                    fastMoveSM.CreateItemGroup(displayGroup, paraGroup);
                }
                else
                {
                    fastMoveSM.GetComponent <RectTransform>().DOAnchorPosY(60, 1);
                    triggerFastMoveSM.AlphaPlayBackward();
                }
            }
        }
    }