/// <summary> /// Constructeur d'action avec passe /// </summary> /// <param name="pointPasse">Direction de la passe</param> /// <param name="posPasse">Position de déclenchement</param> public PlayerAction(int id, Vector3 pointDep, Vector3 pointPasse, List<string> btnValues, Vector3 posPasse) { this.id = id; this.pointDep = pointDep; this.pointPasse = pointPasse; this.btnValues = btnValues; this.makePasse = true; this.posPasse = posPasse; }
public PlayerAction UpdateWith(PlayerAction action) { this.makePasse = action.makePasse; this.posPasse = action.posPasse; this.pointDep = action.pointDep; this.pointPasse = action.pointPasse; this.copyBtnValues(action.btnValues); return this; }
private Vector3Serializer pointPasse; // Direction de la passe /// <summary> /// Constructeurs d'action sans passe /// </summary> public PlayerAction(int id, Vector3 pointDep, List<string> btnValues) { this.id = id; this.pointDep = pointDep; this.btnValues = btnValues; this.makePasse = false; this.posPasse = Vector3.zero; this.pointPasse = Vector3.zero; }