public ContextualScorerNode(ContextualScorerBase scorer, NodeContext context) : base(scorer.GetType().FullName, context, scorer) { this.scorer = scorer; scorerOut = AddPort(PortType.Out, "Context. Scorer"); }
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); }
public void ContextualScorer(ContextualScorerBase scorer, float score) { _foo2[scorer] = score; }