ShieldTSource, TArgs Properties |
The ShieldTSource, TArgs generic type exposes the following members.
Name | Description | |
---|---|---|
AbsorptionFlat |
Gets or sets the flat amount of removed resource that should be absorbed by the shield.
| |
AbsorptionScaling |
Gets or sets the fraction of removed resource that should be absorbed by the shield.
| |
animation | Obsolete. The Animation attached to this GameObject. (Null if there is none attached). | |
audio | Obsolete. The AudioSource attached to this GameObject. (Null if there is none attached). | |
camera | Obsolete. The Camera attached to this GameObject. (Null if there is none attached). | |
collider | Obsolete. The Collider attached to this GameObject. (Null if there is none attached). | |
collider2D | Obsolete. The Collider2D component attached to the object. | |
constantForce | Obsolete. The ConstantForce attached to this GameObject. (Null if there is none attached). | |
Current |
Gets the current amount of resource in this pool.
(Inherited from ResourcePoolTSource, TArgs.) | |
DefaultArgs |
Gets the args to fallback on if no args is specified.
(Inherited from ResourcePoolTSource, TArgs.) | |
DefaultSource |
Gets the source to fallback on if no source is specified.
(Inherited from ResourcePoolTSource, TArgs.) | |
EmptiesWithTarget |
Gets or sets whether the shield should get fully drained when the target is empty.
| |
EmptyTillRenewed |
Gets or sets whether adding resource should be disabled after the pool is completely empty, until it is renewed using Renew(TSource, TArgs, Boolean) again.
(Inherited from ResourcePoolTSource, TArgs.) | |
enabled | Enabled Behaviours are Updated, disabled Behaviours are not. | |
gameObject | The game object this component is attached to. A component is always attached to a game object. | |
guiElement | Obsolete. (Inherited from Component.) | |
guiText | Obsolete. The GUIText attached to this GameObject. (Null if there is none attached). | |
guiTexture | Obsolete. The GUITexture attached to this GameObject (Read Only). (null if there is none attached). | |
hideFlags | Should the object be hidden, saved with the scene or modifiable by the user? | |
hingeJoint | Obsolete. The HingeJoint attached to this GameObject. (Null if there is none attached). | |
isActiveAndEnabled | Has the Behaviour had enabled called. | |
IsEmpty |
Gets whether the pool is completely empty.
(Inherited from ResourcePoolTSource, TArgs.) | |
IsFull |
Gets whether the pool is completely empty.
(Inherited from ResourcePoolTSource, TArgs.) | |
light | Obsolete. The Light attached to this GameObject. (Null if there is none attached). | |
Max |
Gets or sets the maximum amount of source that can be in this pool.
(Inherited from ResourcePoolTSource, TArgs.) | |
name | The name of the object. | |
networkView | Obsolete. The NetworkView attached to this GameObject (Read Only). (null if there is none attached). | |
particleEmitter | Obsolete. The ParticleEmitter attached to this GameObject. (Null if there is none attached). | |
particleSystem | Obsolete. The ParticleSystem attached to this GameObject. (Null if there is none attached). | |
Percentage |
Gets a how full the resource is percentage-wise (0 to 1)
(Inherited from ResourcePoolTSource, TArgs.) | |
ProtectedTarget |
Gets or sets the target that this shield should protect.
| |
renderer | Obsolete. The Renderer attached to this GameObject. (Null if there is none attached). | |
RenewsWithTarget |
Gets or sets whether the shield should renew when the target does.
| |
rigidbody | Obsolete. The Rigidbody attached to this GameObject. (Null if there is none attached). | |
rigidbody2D | Obsolete. The Rigidbody2D that is attached to the Component's GameObject. | |
runInEditMode | Allow a specific instance of a MonoBehaviour to run in edit mode (only available in the editor). | |
tag | The tag of this game object. | |
TimeSinceEmpty |
Get the (scaled) time since this pool was last empty.
(Inherited from ResourcePoolTSource, TArgs.) | |
transform | The Transform attached to this GameObject. | |
useGUILayout | Disabling this lets you skip the GUI layout phase. |