Class "DanmakuBulletSource"

Namespace: VirtualDropkick.DanmakuEngine.Unity
Inherits from: UnityEngine.MonoBehaviour

Summary

An abstract bullet-source which can either be a bullet or an emitter


Public Members

bool destroyWhenInvisible
Determines if this bullet-source will be destroyed when it became invisible


Public Properties

float Angle
The current rotation angle of this bullet-source

DanmakuBullet AsBullet
Convenience property which casts this bullet-source to a DanmakuBullet - returns null if this object is an emitter

DanmakuEmitter AsEmitter
Convenience property which casts this bullet-source to a DanmakuEmitter - returns null if this object is a bullet

bool IsEmitter
Returns true if this object is an emitter - false if it is a bullet

Vector2 Position
The current X/Y-position of this bullet-source

string[] PropertyNames
Returns an array of all defined custom-property names

float Speed
The current speed of this bullet-source

Public Methods

DanmakuContext GetContext()
Returns the context of this bullet-source

IDictionary<string, string> GetProperties()
Returns the custom-properties of this bullet-source which are defined in the DanmakuJSON-file

string GetProperty(string name, string fallback="")
Returns the value of the custom-property with the given name (fallback if it was not found)

float GetVariable(string name)
Returns the value of the variable in the local scope of this bullet-source with the given name - 0.0f if the variable does not exist

bool HasProperty(string name)
Returns true if this bullet-source has a custom-property with the given name - otherwise false

float SetVariable(string name, float value)
Sets the value of the variable in the local scope of this bullet-source with the given name

Protected Methods

virtual void Awake()
Called by Unity when this object gets initialized. You can override this method in a sub-class but make sure that you call base.Awake() to avoid breaking the behaviour of this class.

virtual void OnBecameInvisible()
Called by Unity when this object became invisible. You can override this method in a sub-class but make sure that you call base.OnBecameInvisible() to avoid breaking the behaviour of this class.

virtual void Start()
Called by Unity when this object becomes active. You can override this method in a sub-class but make sure that you call base.Start() to avoid breaking the behaviour of this class.

virtual void Update()

Called by Unity on every frame for which this object is active. You can override this method in a sub-class but make sure that you call base.Update() to avoid breaking the behaviour of this class.


Class "DanmakuBullet"

Namespace: VirtualDropkick.DanmakuEngine.Unity
Inherits from: DanmakuBulletSource

Remarks

See the parent class DanmakuBulletSource for details


Class "DanmakuEmitter"

Namespace: VirtualDropkick.DanmakuEngine.Unity
Inherits from: DanmakuBulletSource

Remarks

See the parent class DanmakuBulletSource for details


Buy the Danmaku Engine plugin

Leave a comment