Class MantisShot
WeaverCore's implementation of a mantis shot
Inheritance
Object
Component
Behaviour
MonoBehaviour
MantisShot
Assembly: WeaverCore.dll
Syntax
public class MantisShot : MonoBehaviour
Properties
|
Edit this page
View Source
Animator
Declaration
public WeaverAnimationPlayer Animator { get; }
Property Value
|
Edit this page
View Source
Audio
Declaration
public AudioPlayer Audio { get; }
Property Value
|
Edit this page
View Source
BoomerangForce
The amount of force that is applied on the y-axis when the mantis shot reaches the player
Declaration
public float BoomerangForce { get; set; }
Property Value
|
Edit this page
View Source
MainCollider
Declaration
public BoxCollider2D MainCollider { get; }
Property Value
Type |
Description |
BoxCollider2D |
|
|
Edit this page
View Source
PlaySound
Declaration
public bool PlaySound { get; }
Property Value
|
Edit this page
View Source
RB
Declaration
public Rigidbody2D RB { get; }
Property Value
Type |
Description |
Rigidbody2D |
|
Methods
|
Edit this page
View Source
Spawn(Vector3, Vector2, bool)
Declaration
public static MantisShot Spawn(Vector3 position, Vector2 velocity, bool playLaunchSound = true)
Parameters
Type |
Name |
Description |
Vector3 |
position |
The position to spawn it at
|
Vector2 |
velocity |
The starting velocity of the mantis shot
|
bool |
playLaunchSound |
If set to true, will play a sound when it is launched
|
Returns
Extension Methods