// Use this for initialization void Start() { mapping = gameObject.GetComponent <SpatialMapping>(); recognizer = new GestureRecognizer(); recognizer.TappedEvent += Recognizer_TappedEvent; recognizer.StartCapturingGestures(); StartCoroutine(UpdateMesh()); }
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; }
void Awake() { //单例 Instance = this; }
/// <summary> /// Initialize the class /// </summary> private void Awake() { Instance = this; }