internal CharacterMotor() {
     jump  = new u::key((n)=>jump.input=n);
     dash  = new u::key((n)=>dash.input=n);
     duck  = new u::key((n)=>duck.input=n);
     axisX = new u::axis((n)=>axisX.input=n);
     axisY = new u::axis((n)=>axisY.input=n);
 }
Example #2
0
 /** `Feet` : **`constructor`**
  *
  * Usually frowned upon in `Unity` development, but in
  * this case, it harmlessly creates input listeners for
  * the few inputs that this class needs to know about.
  **/
 public Feet() {
     jump = new u::key((n)=>jump.input=n);
     dash = new u::key((n)=>dash.input=n);
     duck = new u::key((n)=>duck.input=n);
 }