示例#1
0
        protected virtual void OnEnable()
        {
            provider = requireComponent <LeapProvider>();
            factory  = requireComponent <HandFactory>();

            provider.OnUpdateFrame += OnUpdateFrame;
            provider.OnFixedFrame  += OnFixedFrame;
        }
        protected virtual void Start()
        {
            Factory = requireComponent <HandFactory>();

            //Felix
            if (Provider == null)
            {
                Provider = GetComponent <LeapProvider>();
            }
        }
示例#3
0
        protected virtual void Start()
        {
            //provider = requireComponent<LeapProvider>();
            factory = requireComponent <HandFactory>();

            //Felix
            if (provider == null)
            {
                provider = GetComponent <LeapProvider>();
            }
            //Felix

            /*if (Player == null)
             * {
             *  Player = GetComponent<LeapPlayer>();
             * }*/
        }
 protected virtual void Start()
 {
     provider = requireComponent <LeapProvider>();
     factory  = requireComponent <HandFactory>();
 }