Class WeaponSlot
Used for weapons. Will adjusts effect positions based on length of the weapon sprites and disable effects if no sprites are set.
Inheritance
System.Object
WeaponSlot
Assembly: cs.temp.dll.dll
Syntax
public class WeaponSlot : CustomizationSlot
Properties
StabEffect
Declaration
public SpriteRenderer StabEffect { get; }
Property Value
Type |
Description |
SpriteRenderer |
|
SwingEffect
Declaration
public SpriteRenderer SwingEffect { get; }
Property Value
Type |
Description |
SpriteRenderer |
|
Methods
GetWeaponLength()
Returns the length of the distance between hand and top of the weapon (usually weapon tip). This is done by the height if the weapon sprites.
Declaration
public float GetWeaponLength()
Returns
Type |
Description |
System.Single |
|
SetSprites(Sprite, Sprite)
Sets the sprite and calculates the length, which is used for changing the position of the weapon effects.
Declaration
public override void SetSprites(Sprite sprite, Sprite detailSprite)
Parameters
Type |
Name |
Description |
Sprite |
sprite |
|
Sprite |
detailSprite |
|
Overrides