Commit fb3666b3 authored by Bernice Anne W. Chua's avatar Bernice Anne W. Chua

Begin the script for sensing if a FloatingLabel is targetted by a Raycast.

parent eefddad9
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class TargetedByRaycast : MonoBehaviour {
Text m_lookHereUI { get { return GetComponentInChildren<Text>(); } set { value = m_lookHereUI; } }
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
//if (ReceiveRaycast()) {
// }
}
//bool ReceiveRaycast() {
// RaycastHit hit;
// if (Physics.Raycast()) {
// return true;
// }
// else {
// return false;
// }
//}
}
fileFormatVersion: 2
guid: 97379451dd50bc3409becdc542ea8028
timeCreated: 1510050999
licenseType: Free
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment