public static void ShowWorldBubble() { EventEngine instance = PersistenSingleton <EventEngine> .Instance; BubbleUI.Flag[] bubbleFlagData = EIcon.GetBubbleFlagData(EIcon.sFIconType); Action <PosObj, Obj, UInt32>[] listener = new Action <PosObj, Obj, UInt32>[] { new Action <PosObj, Obj, UInt32>(EventCollision.BubbleUIListener) }; PosObj controlChar = instance.GetControlChar(); Vector3 uidefaultOffset = BubbleUI.UIDefaultOffset; if (controlChar.go == (UnityEngine.Object)null) { return; } if (EventCollision.IsChocoboFlyingOverForest() || (EIcon.dialogBubble && EIcon.dialogAlternativeKey)) { Singleton <BubbleUI> .Instance.ChangePrimaryKey(Control.Cancel); EIcon.dialogAlternativeKey = false; } else { Singleton <BubbleUI> .Instance.ChangePrimaryKey(Control.Confirm); } EIcon.ShowDelay = Singleton <BubbleUI> .Instance.AnimationDuration; Vector3 transformOffset; EIcon.GetWorldActorOffset(out transformOffset, ref uidefaultOffset); Singleton <BubbleUI> .Instance.Show(controlChar.go.transform, controlChar, (Obj)null, EIcon.WorldCamera, transformOffset, uidefaultOffset, bubbleFlagData, listener); }
private static void ShowFieldBubble() { EventEngine instance = PersistenSingleton <EventEngine> .Instance; EIcon.hereIconShow = false; Obj obj = instance.FindObjByUID((Int32)instance.GetControlUID()); if (obj.go == (UnityEngine.Object)null) { return; } EIcon.ShowDelay = Singleton <BubbleUI> .Instance.AnimationDuration; BubbleUI.Flag[] bubbleFlagData = EIcon.GetBubbleFlagData(EIcon.sFIconType); if (obj.cid == 4 && obj.go.activeSelf) { Transform target; Vector3 offset; BubbleMappingInfo.GetActorInfo((PosObj)obj, out target, out offset); Singleton <BubbleUI> .Instance.Show(target, (PosObj)obj, (Obj)null, EIcon.FieldMap, offset, bubbleFlagData, null); } else { Singleton <BubbleUI> .Instance.Show((Transform)null, (PosObj)obj, (Obj)null, EIcon.FieldMap, Vector3.zero, bubbleFlagData, null); } }