DamageOnContact Class

Summary

Shows a Weaver.Examples.FloatingText as if damage were being dealt whenever a collision is detected.
Assembly
Weaver.dll
Namespace
Weaver.Examples
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["DamageOnContact"] class Type type-node

Syntax

public sealed class DamageOnContact : MonoBehaviour

Fields

Name Constant Value Summary
force
The amount of force to give the colliding UnityEngine.Rigidbody.
max
The maximum amount of damage that can be dealt.
min
The minimum amount of damage that can be dealt.
type
The type of damage to deal.