Neodroid  0.2.0
Machine Learning Environment Prototyping Tool
ActionCounter.cs
Go to the documentation of this file.
2 using UnityEngine;
3 
4 namespace droid.Runtime.Prototyping.Internals {
9  [SerializeField] IAbstractPrototypingEnvironment _environment;
10 
13  public IAbstractPrototypingEnvironment ParentEnvironment {
14  get { return this._environment; }
15  set { this._environment = value; }
16  }
17 
21  public override string PrototypingTypeName { get { return "ActionCounter"; } }
22 
26  protected override void Clear() {
27  /*if (!this._environment) {
28  this._environment = this.GetComponent<PrototypingEnvironment>();
29  }*/
30  }
31 
34  void HandleStep() {
35  var reaction = this._environment.LastReaction;
36  var motions = reaction.Motions;
37  }
38 
42  public override void EnvironmentReset() { }
43 
47  public override void PreStep() { }
48 
52  public override void Step() { this.HandleStep(); }
53 
57  public override void PostStep() { }
58  }
59 }