Пример #1
0
        public void open()
        {
            tracking_ = this.gameObject.AddComponent <Tracking.TrackingHandler>();
            tracking_.addMaker(_mark);

            tracking_.onFind += delegate(Transform target)
            {
                target_ = target;
                _button.show(target);
            };
            tracking_.onLost += delegate(Transform tsm)
            {
                _button.hide();
            };
            _button.onClicked += doClicked;
        }
Пример #2
0
        public void open()
        {
            tracking_ = this.gameObject.AddComponent <Tracking.TrackingHandler>();
            tracking_.addMaker(_mark);

            tracking_.onFind += delegate(Transform target)
            {
                target_ = target;
                _button.show(target_);
                Debug.LogError("Mark");
                fsm_.post("mark");
            };
            tracking_.onLost += delegate(Transform tsm)
            {
                _button.hide();
            };
        }