예제 #1
0
 /// <summary>
 /// Constructs a Blackboard with a custom name and parent.
 /// Random variation defaults to 0.
 /// </summary>
 /// <param name="name">Name of the Blackboard.</param>
 /// <param name="parent">Blackboard's parent.</param>
 /// <param name="timerRandomVariation">Time variation for Blackboard listeners timer. Defaults to 0.</param>
 public Blackboard(string name, Blackboard parent, float timerRandomVariation = 0f)
 {
     this.name   = name;
     this.parent = parent;
     this.timerRandomVariation = timerRandomVariation;
 }
예제 #2
0
 /// <summary>
 /// Constructs a Blackboard with a parent.
 /// Random variation defaults to 0.
 /// </summary>
 /// <param name="parent">Blackboard's parent.</param>
 /// <param name="timerRandomVariation">Time variation for Blackboard listeners timer. Defaults to 0.</param>
 public Blackboard(Blackboard parent, float timerRandomVariation = 0f) : this("Blackboard", parent, timerRandomVariation)
 {
 }