public class EnergySwordBehaviour
Inherits MonoBehaviour
, Messages.IOnBeforeSerialise
, Messages.IOnAfterDeserialise
, Messages.IUse
Controls the energy sword
Nested types
EnergySwordBehaviour.SoftConnection
Fields
public PhysicalBehaviour PhysicalBehaviour
[SkipSerialisation]
Reference to the PhysicalBehaviour
public Collider2D MainCollider
[SkipSerialisation]
Reference to the main collider
public Collider2D BladeCollider
[SkipSerialisation]
Reference to the blade collider
public LineSegment LocalBladeLine
[SkipSerialisation]
Approximate line the blade follows. Used for some intersection calculations.
public DamagableMachineryBehaviour DamagableMachinery
[SkipSerialisation]
Reference to the DamagableMachineryBehaviour
that decides when the energy sword is broken
public GameObject BladeObject
[SkipSerialisation]
Reference to the GameObject
that contains the blade
public float SpeedCutThreshold
[SkipSerialisation]
Unused.
public LayerMask LayerMask
[SkipSerialisation]
Which layers should be considered
public float MinSoftness
[SkipSerialisation]
Unused.
public ParticleSystem RainParticles
[SkipSerialisation]
References to all relevant particle systems.
public AudioClip[] ImpactSound
[SkipSerialisation]
Array of audio clips that play when the blade impacts something
public AudioClip PowerOff
[SkipSerialisation]
References to the power on/off clips.
public float Damage
[SkipSerialisation]
The amount of damage done to objects when they are hit with the sword
public Transform TipOfBlade
[SkipSerialisation]
Reference to a transform at the very tip of the blade
public GameObject MotionBlur
[SkipSerialisation]
Reference to the GameObject
that does all the motion blur stuff
public AudioSource LoopSource
[SkipSerialisation]
References to the audio sources that play the sword sounds
public float BladeTemperature
[SkipSerialisation]
Target blade temperature
public bool Activated
Is the sword activated?
public System.Guid[] SerialisableVictims
[HideInInspector]
Used for serialisation, please don't touch
Methods
public void Use(ActivationPropagation activation)
No description provided
public void OnBeforeSerialise()
No description provided
public void OnAfterDeserialise(List<GameObject> gameobjects)
No description provided