Пример #1
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (_teleportReady && collision.gameObject.layer == Layers.Player)
     {
         _hoverText.SetVisible(true);
     }
 }
Пример #2
0
 private void Start()
 {
     _hoverText = HUD.Instance.CreateMenu <HoverText>();
     _hoverText.SetVisible(false);
     _hoverText.SetText(Util.Localisation.LocManager.GetTranslation(TeleporterPrompt));
     _hoverText.SetTrackedObject(transform, new Vector3(0.0f, 5.0f, 0.0f));
 }