Exemple #1
0
 //=====================================================================
 #region Protected methods
 //=====================================================================
 /// <summary>
 /// Sources and initializes component variables.
 /// </summary>
 protected void InitVars(IPiercingDWGO weapon, GameObject attacker)
 {
     base.InitVars(weapon, attacker);
     // Initialize IPiercingDWGO variables
     this.PiercingCount = weapon.PiercingCount;
 }
Exemple #2
0
 //=====================================================================
 #region Public methods
 //=====================================================================
 /// <summary>
 /// Initializes the DWGO variables, sets the appropraite rotation, launches
 /// the GameObject in its "forward" direction, starts the self destruct
 /// countdown.
 /// </summary>
 /// <param name="weapon">
 /// The weapon script that fired this GameObject.
 /// </param>
 /// <param name="attacker">
 /// The GameObject initiating the attack/heal.
 /// </param>
 /// <param name="direction">
 /// The direction that the attack is to be made.
 /// </param>
 public void Init(IPiercingDWGO weapon, GameObject attacker, Vector3 direction)
 {
     base.Init(weapon, attacker, direction);
 }