public override void Init() { Sound.Music("customizing", 0.38f).Play(); var classChoice = CreateWeaponChoice( new WeaponSet("Sniper", new RsxCarbine(), new SideArm()), new WeaponSet("Bulleteer", new WarUzi(), new AutoPistol()), new WeaponSet("Up Close", new WarShotgun(), new PowerMagnum())); _activeChoice = classChoice; ClickUi.Add(classChoice.Branch); Add(new Label { Text = "Weldon Zemke", Font = GuiFonts.Header, TextColor = UiColors.InGame_Text, Transform = new Transform2(new Vector2(0.02.VW(), 0.2.VH()), new Size2(0.20.VW(), 80)) }); Add(new Label { Text = "Leader of ZFS", Font = GuiFonts.Large, TextColor = UiColors.InGame_Text, Transform = new Transform2(new Vector2(0.02.VW(), 0.25.VH()), new Size2(0.20.VW(), 80)) }); Add(new UiImage { Image = "Characters/MainCharacter/MainCharacter-bust.png", Transform = new Transform2(new Vector2(-0.06.VW(), 0.3.VH()), new Size2(0.7.VH(), 0.7.VH())) }); Add(_activeChoice); Add(new ScreenFade { Duration = TimeSpan.FromSeconds(1) }.Started()); Add(_fadeOut); }
private void InitUI() { photoUIobj = uiRoot.GetUIView().gameObject; photoUIobj.name = "PhotoUIroot"; GameObject g = Instantiate(Resources.Load("UI/Photo/Image")) as GameObject; g.transform.SetParent(photoUIobj.transform); specialEffectsUI = g.AddComponent <SpecialEffectsUI>(); specialEffectsUI.Init(); clickUi = new ClickUi(photoUIobj); if (collectPhoto == null) { collectPhoto = new CollectPhoto(specialEffectsUI, PhotoCameraObj); } }
private void Delete() { StopCoroutine(photoprompt.SetPrompt()); itemManager.Delete(); Destroy(imageManager); Destroy(photoUIobj); collectPhoto.Delete(); collectPhoto = null; clickUi.Delete(); clickUi = null; photoprompt.Delete(); photoprompt = null; m_PhotoNotReachable.Delete(); m_PhotoNotReachable = null; Destroy(Royboj); Destroy(PhotoCameraObj); if (Closecallback != null) { Closecallback(); } }