public void SelectHouse(int house)
        {
            if (LastHS != null && LastHS.HouseID == house)
            {
                ResetZoom();
            }
            else
            {
                LastHS?.Kill();
                LastHS = new UIHouseSelectPanel(house);
                GameFacade.Screens.CurrentUIScreen.Add(LastHS);
                GameFacade.Screens.Tween.To(this, 0.5f, new Dictionary <string, float>()
                {
                    { "Zoom", (Mode == 4)?3f:1.5f },
                    { "CenterPositionX", HousePositions[house].X - ((Mode == 4)?90f:180f) },
                    { "CenterPositionY", HousePositions[house].Y }
                }, TweenQuad.EaseOut);

                LastHS.OnSelected += (h) =>
                {
                    OnHouseSelect?.Invoke(h);
                    //HITVM.Get().PlaySoundEvent("bkground_fade");
                };
            }
        }
Exemplo n.º 2
0
 public void SelectHouse(int house)
 {
     OnHouseSelect?.Invoke(house);
     HIT.HITVM.Get().PlaySoundEvent("bkground_fade");
 }