Skip to content

iiDkRemastered/gorillacaptions

Ownership not verified 0Apache-2.0
Open on GitHub

Viewing main at commit 18e583edbd“Add files via upload”· 2 months ago

35 lines · 922 BRaw on GitHub
using Photon.Voice.Unity;
using System.Collections.Generic;
using System.Threading.Tasks;
using System;
using UnityEngine;
using System.IO;
using System.Reflection;

namespace GorillaCaptions.Classes
{
    public class SpeechBubble : MonoBehaviour
    {
        public VRRig Owner;
        private GameObject uiTarget;
        private float spawnTime;

        void Awake()
        {
            spawnTime = Time.time;
            uiTarget = transform.Find("Canvas").gameObject;
            gameObject.transform.localPosition = Vector3.up * 0.6f;
        }
            

        void Update()
        {
            if (Time.time > spawnTime + 10f || Owner == null || !Owner.gameObject.activeInHierarchy)
                Managers.BubbleManager.instance.DestroyBubble(gameObject);
        }

        void LateUpdate() =>
            uiTarget.transform.LookAt(GorillaTagger.Instance.headCollider.transform.position);
    }
}

Code is shown from GitHub as-is. Linking a repository doesn’t prove that a release file on Canopy was built from it.