コード例 #1
0
 /// <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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
        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;
        }