Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        mapping = gameObject.GetComponent <SpatialMapping>();

        recognizer              = new GestureRecognizer();
        recognizer.TappedEvent += Recognizer_TappedEvent;
        recognizer.StartCapturingGestures();

        StartCoroutine(UpdateMesh());
    }
Ejemplo n.º 2
0
 void Awake()
 {
     Instance = this;
     // Convert the layer into a mask so it can be used to Raycast against.
     PhysicsRaycastMask = 1 << PhysicsLayer;
 }
 /// <summary>
 /// Initializes this class
 /// </summary>
 private void Awake()
 {
     // Allows this instance to behave like a singleton
     Instance = this;
 }
Ejemplo n.º 4
0
 void Awake()
 {
     //单例
     Instance = this;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Initialize the class
 /// </summary>
 private void Awake()
 {
     Instance = this;
 }