예제 #1
0
 /** OnStatusApplied, public override void
  * If we get a projectile, we launch the AccelerateProjectile method.
  **/
 public override void OnStatusApplied()
 {
     projectile = transform.GetComponentInParent <IProjectile>();
     if (projectile != null)
     {
         projectile.AccelerateProjectile(float.Parse(OtherValues[0]));
     }
 }
예제 #2
0
 /** DestroyStatus public virtual void
  * Before everuthing, we reset the move speed of the GameObject associated.
  * Instantly Destroy the gameObject that contains the Status
  **/
 public override void DestroyStatus()
 {
     if (projectile != null)
     {
         projectile.AccelerateProjectile(float.Parse(OtherValues[0]));
     }
     base.DestroyStatus();
 }