コード例 #1
0
    public void AddBubbleDialogue(Transform actorRoot, float height, long uuid)
    {
        if (!SystemConfig.IsBillboardOn)
        {
            return;
        }
        this.RemoveBubbleDialogue(uuid, actorRoot);
        BubbleDialogueUnit bubbleDialogueUnit = this.Create2BubbleDialogue(actorRoot, height, uuid);

        bubbleDialogueUnit.SetUUID(uuid);
        bubbleDialogueUnit.SetTargetPositionNode(BillboardManager.AddHeadInfoPosition(actorRoot, height));
    }
コード例 #2
0
    private HeadInfoControl AddControl(Transform parent, float height, long uuid, Transform ui, int actorType, bool avc_control)
    {
        Transform       transform       = BillboardManager.AddHeadInfoPosition(parent, height);
        HeadInfoControl headInfoControl = transform.get_gameObject().AddMissingComponent <HeadInfoControl>();

        headInfoControl.uuid         = uuid;
        headInfoControl.m_isInAVC    = avc_control;
        headInfoControl.m_headInfoUI = ui;
        headInfoControl.m_actorType  = actorType;
        headInfoControl.set_enabled(true);
        this.m_controls.Add(headInfoControl);
        return(headInfoControl);
    }