IMHOTEP Framework
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
FootPrints.cs
1 using UnityEngine;
2 using System.Collections;
3 
4 public class FootPrints : MonoBehaviour {
5 
6  private GameObject text;
7  public GameObject Camera;
8 
9  void Start()
10  {
11  text = transform.Find ("PleaseStandHere").gameObject;
12  }
13 
14  // Update is called once per frame
15  void Update () {
16  if (text != null) {
17  if (Time.frameCount > 5 && Time.time > 2) {
18  if ((text.transform.position - Camera.transform.position).magnitude < 0.35f) {
19  GameObject.Destroy (text);
20  text = null;
21  Platform.instance.activateUIMesh ();
22  }
23  }
24  }
25  }
26 }