Inheritance: MonoBehaviour
Exemplo n.º 1
0
 public void AddTapListener(TapHandler pHandler)
 {
     if (_handlers == null)
     {
         _handlers = new List <TapHandler> ();
     }
     _handlers.Add(pHandler);
 }
 // Use this for initialization
 void Start()
 {
     tapper = GetComponent <TapHandler>();
     if (tapper != null)
     {
         tapper.OnTap += Tapper_OnTap;
     }
 }
Exemplo n.º 3
0
    public void RemoveTapListener(TapHandler pHandler)
    {
        if (_handlers == null)
        {
            return;
        }

        _handlers.Remove(pHandler);
    }
Exemplo n.º 4
0
    // Use this for initialization
    void Start()
    {
        WorldAnchorStore.GetAsync(new WorldAnchorStore.GetAsyncDelegate(GotWorldAnchorStore));

        tapper = GetComponent <TapHandler>();
        if (tapper != null)
        {
            tapper.OnTap += Tapper_OnTap;
        }
    }
 private void Start()
 {
     // Sets up submit handler
     _submitHandler = new TapHandler(() => Input.GetAxisRaw("Submit") > 0);
 }
Exemplo n.º 6
0
 private void OnLangLoaded(MLanguageLoaded msg)
 {
     foxTap = fox.GetComponentInChildren <TapHandler>();
 }