Esempio n. 1
0
 internal static QueryArgs GetQueryArgs(this GameObject go, Exclusivity exclusivity = Exclusivity.ReadOnly)
 {
     return(new QueryArgs
     {
         conditions = ProxyConditions.FromGameObject <Proxy>(go),
         exclusivity = exclusivity,
         commonQueryData = new CommonQueryData()
     });
 }
            internal static ConditionRatingsData Setup()
            {
                var go = new GameObject();

                go.AddComponent <Proxy>();
                go.AddTestFloatCondition();
                go.AddComponent <TestConditions.Pose>();
                var conditions = ProxyConditions.FromGameObject <Proxy>(go);
                var ratings    = new ConditionRatingsData(conditions);

                ratings[typeof(float)][0] = floatRatings;
                ratings[typeof(Pose)][0]  = poseRatings;
                return(ratings);
            }
        public void SetupBeforeEach()
        {
            SlowTaskModule.instance.ClearTasks();

            m_GameObject = new GameObject("pipeline test condition source");
            SetupObject(m_GameObject);

            m_Child1GameObject = new GameObject("pipeline test member 1");
            m_Child1GameObject.AddComponent <Proxy>();
            m_Child2GameObject = new GameObject("pipeline test member 2");
            m_Child2GameObject.AddComponent <Proxy>();

            ProxyConditions.FromGameObject <Proxy>(m_Child1GameObject);
            ProxyConditions.FromGameObject <Proxy>(m_Child2GameObject);

            m_Ratings.Clear();

            m_Db.Clear();
            k_Intersection.Clear();
        }