public override void OnLeave() { WKStaticFunction.WKMessageLog("Leave ARState"); HomeModal homeModal = HomeModal.Instance(); homeModal.CloseModal(); base.OnLeave(); }
public static HomeModal Instance() { if (_Instance == null) { _Instance = GameObject.FindObjectOfType <HomeModal>(); if (_Instance == null) { WKStaticFunction.WKMessageError("there is no HomeModal in the system"); } } return(_Instance); }
private void searchResult(HomePets item) { HomeModal SingleHome = new HomeModal(); var user = context.Users.FirstOrDefault(us => us.Id == item.UserId); SingleHome.ID = item.ID; SingleHome.Description = item.Description; SingleHome.AvailablePlace = item.AvailablePlace; SingleHome.NumberOfRooms = item.NumberOfRooms; SingleHome.PriceForNight = item.PriceForNight; SingleHome.User.Email = user.Email; SingleHome.User.Id = user.Id; SingleHome.User.PhoneNumber = user.PhoneNumber; SingleHome.User.Photo = user.Photo; SingleHome.User.FirstName = user.FirstName; SingleHome.User.UserName = user.UserName; foreach (var image in item.homePetsPhoto) { SingleHome.HomePhotos.Add(image.Photo); } AllHome.Add(SingleHome); }