Example #1
0
 public static void onHit(BThirdPerson controller, Collider collider, CharacterStats stats)
 {
     OStroke stroke = collider.gameObject.GetComponent<OStroke>();
     if(stroke){
         controller.hitBack(stroke.strokeForce, collider.gameObject);
         stats.reduceHealthImpact(stroke.strength);
     }
     else{
         stats.reduceHealthImpact(5f);
     }
 }