Exemplo n.º 1
0
    public static void ShowWorldBubble()
    {
        EventEngine instance = PersistenSingleton <EventEngine> .Instance;

        BubbleUI.Flag[] bubbleFlagData        = GetBubbleFlagData(s_FIconType);
        Action <PosObj, Obj, uint>[] listener = new Action <PosObj, Obj, uint>[1] {
            EventCollision.BubbleUIListener
        };
        PosObj  controlChar = instance.GetControlChar();
        Vector3 uiOffset    = BubbleUI.UIDefaultOffset;

        if (controlChar.go == null)
        {
            return;
        }

        if (EventCollision.IsChocoboFlyingOverForest() || IsDialogBubble && s_dialogAlternativeKey)
        {
            Singleton <BubbleUI> .Instance.ChangePrimaryKey(Control.Cancel);

            s_dialogAlternativeKey = false;
        }
        else
        {
            Singleton <BubbleUI> .Instance.ChangePrimaryKey(Control.Confirm);
        }

        ShowDelay = Singleton <BubbleUI> .Instance.AnimationDuration;
        Vector3 actorOffset;

        GetWorldActorOffset(out actorOffset, ref uiOffset);
        Singleton <BubbleUI> .Instance.Show(controlChar.go.transform, controlChar, null, WorldCamera, actorOffset, uiOffset, bubbleFlagData, listener);
    }
Exemplo n.º 2
0
    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);
    }