Exemplo n.º 1
0
    public override void OnTriggerClicked(ClickedEventArgs e)
    {
        base.OnTriggerClicked(e);

        if (currFocus != null)
        {
            Interactive l = currFocus.GetComponent <Interactive>();

            if (l != null)
            {
                if (l.type == Interactive.InteractiveTypes.Grab)
                {
                    l.Grab(this.transform);
                }

                if (l.type == Interactive.InteractiveTypes.Marker)
                {
                    AnotationManager canvs = currFocus.GetComponent <AnotationManager>();
                }

                if (l.type == Interactive.InteractiveTypes.ObjButton)
                {
                    l.ObjectClick();
                }

                if (l.type == Interactive.InteractiveTypes.Canvas)
                {
                    l.ShowCanvas();
                }
            }
        }
    }