public ContextualScorerNode(ContextualScorerBase scorer, NodeContext context)
            : base(scorer.GetType().FullName, context, scorer)
        {
            this.scorer = scorer;

            scorerOut = AddPort(PortType.Out, "Context. Scorer");
        }
Exemple #2
0
        void DrawContextualScorer(ContextualScorerBase scorer)
        {
            var name = scorer.GetType().Name;

            float score;

            if (_foo2.TryGetValue(scorer, out score))
            {
                name += string.Format(" {0:F2}", score);
            }

            EditorGUILayout.LabelField(name);
        }
Exemple #3
0
 public void ContextualScorer(ContextualScorerBase scorer, float score)
 {
     _foo2[scorer] = score;
 }