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.
- Listed in Items, inventory and logic
- Inherits or implements
ContactProjectile,INetworkProjectile - Attributes
RequireComponent - Documented in Impacts and hit detection
Constructors
| Member | What it is |
|---|---|
NetworkContactProjectile() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
6 private and internal fields
| Member | What it is |
|---|---|
private PooledObjectDefinition DestructionEffect | Effect set in the inspector for destruction. Unused in this build. |
private GameObject enableOnMessage | Object set in the inspector. Unused in this build. |
private float finalScaleOnDestory | Scale setting for destruction. Unused in this build. |
private bool hasContacted | Backing field for HasContacted. |
private Collider mainCollider | Backing field for Collider. |
private float scaleReductionDuration | Duration setting for shrinking on destruction. Unused in this build. |
Properties
| Member | What 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. |