Skip to main content

NetworkContactProjectile

A class in Root.Township, Alta.Impact.

Obsolete networked contact projectile. It logs an error on Awake telling you to use the new projectile, and its contact and effect methods are empty.

Constructors​

MemberWhat it is
NetworkContactProjectile()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

6 private and internal fields
MemberWhat it is
private PooledObjectDefinition DestructionEffectEffect set in the inspector for destruction. Unused in this build.
private GameObject enableOnMessageObject set in the inspector. Unused in this build.
private float finalScaleOnDestoryScale setting for destruction. Unused in this build.
private bool hasContactedBacking field for HasContacted.
private Collider mainColliderBacking field for Collider.
private float scaleReductionDurationDuration setting for shrinking on destruction. Unused in this build.

Properties​

MemberWhat it is
Collider Collider { get; }The main collider set in the inspector.
NetworkEntity Entity { get; set; }The projectile's network entity, set from outside.
Transform Transform { get; }This component's transform.
protected override bool HasContacted { get; }Returns hasContacted, which is never set to true here.
2 private and internal properties
MemberWhat it is
private bool HasEffect { get; set; }Private flag, unused in this build.
private bool WasEnabled { get; set; }Private flag, unused in this build.

Methods​

MemberWhat it is
void InitializeEffects()Empty in this build.
protected override void Awake()Registers with the impact generators, then logs that the class is obsolete.
protected override void OnContact()Empty in this build.