feat: add initial People Playground mod development kit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
URL: https://wiki.studiominus.nl/internalReference/BaseBoltBehaviour.html
|
||||
Title: People Playground Modding - BaseBoltBehaviour
|
||||
==================================================
|
||||
|
||||
public abstract class BaseBoltBehaviour
|
||||
Inherits MonoBehaviour
|
||||
Base class for an energy weapon bolt
|
||||
Fields
|
||||
public float Speed
|
||||
Speed of the projectile
|
||||
|
||||
public LayerMask Layers
|
||||
Layers to collide with
|
||||
|
||||
Methods
|
||||
public abstract bool ShouldReflect(RaycastHit2D hit)
|
||||
The conditions that will be evaluated on hit. If this function returns true, the projectile will bounce off.
|
||||
|
||||
protected abstract void OnHit(RaycastHit2D hit)
|
||||
Called when the projectile impacts something
|
||||
|
||||
public virtual float GetSpeedMultiplier()
|
||||
Should return the final speed multiplier. Base implementation returns 1
|
||||
|
||||
protected virtual void Update()
|
||||
No description provided
|
||||
|
||||
protected bool DoHitCheck(float distance)
|
||||
No description provided
|
||||
Reference in New Issue
Block a user