StunOnContact Class

Summary

When collided with, this component shows a Weaver.Examples.FloatingText to indicate that the colliding object is stunned and temporarily freezes all its UnityEngine.Rigidbody.constraints so it can't move.
Assembly
Weaver.dll
Namespace
Weaver.Examples
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["StunOnContact"] class Type type-node

Syntax

public sealed class StunOnContact : MonoBehaviour

Fields

Name Constant Value Summary
duration
The amount of time the colliding object will be stunned for (in seconds).