Projectile Class

Summary

A component which uses trigger messages to PlatformerGameKit.Hit things.
Assembly
PlatformerGameKit.dll
Namespace
PlatformerGameKit
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type["Projectile"] class Type type-node

Syntax

[AddComponentMenu(Strings.MenuPrefix + "Projectile")]
[HelpURL(Strings.APIDocumentation + "/" + nameof(Projectile))]
public sealed class Projectile : MonoBehaviour

Remarks

Documentation: Ranged Attacks

Attributes

Type Description
AddComponentMenu
HelpURLAttribute

Properties

Name Value Summary
Damage int
Ignore HashSet<Hit.ITarget>
ImpactAnimation SoloAnimation
Lifetime float
Renderer SpriteRenderer
Rigidbody Rigidbody2D
Team Team

Methods

Name Value Summary
Fire(Vector2, Team, int, HashSet<Hit.ITarget>) void
Launches this projectile.