Zigonnage
This commit is contained in:
@@ -22,7 +22,7 @@ namespace JeuHoy_WPF_Natif.Model {
|
||||
JointType.Neck
|
||||
};
|
||||
|
||||
private double[] _sque = new double[CstApplication.SKELETONCOUNT * 2];
|
||||
private double[] _sque;
|
||||
private string _rep = "?";
|
||||
|
||||
public string Reponse { get => _rep; set => _rep = value; }
|
||||
@@ -30,8 +30,12 @@ namespace JeuHoy_WPF_Natif.Model {
|
||||
public double[] Points => _sque;
|
||||
|
||||
public Squelette(double[] body, string reponse) {
|
||||
_sque = body;
|
||||
_rep = reponse;
|
||||
if (body.Length != CstApplication.SKELETONCOUNT * 2) {
|
||||
_sque = new double[CstApplication.SKELETONCOUNT * 2];
|
||||
} else {
|
||||
_sque = body;
|
||||
_rep = reponse;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user