Class PlayerCharacter
Inheritance
object
Object
Component
Behaviour
MonoBehaviour
PlayerCharacter
Assembly: BaseDefense.dll
Syntax
[RequireComponent(typeof(ItemCollecting), typeof(DisplayHealthPoints))]
public sealed class PlayerCharacter : BaseCharacter, IAttackable
Methods
Awake()
Declaration
protected override void Awake()
Overrides
Constructor(JoystickController, Shop, DisplayingUI)
Declaration
[Inject]
public void Constructor(JoystickController joystick, Shop shop, DisplayingUI displayingUI)
Parameters
Hit(float)
Declaration
public override void Hit(float damage)
Parameters
Type |
Name |
Description |
float |
damage |
|
Overrides
Load(GameDataReader)
Declaration
public override void Load(GameDataReader reader)
Parameters
Overrides
OnDeath()
Declaration
protected override void OnDeath()
Overrides
Save(GameDataWriter)
Declaration
public override void Save(GameDataWriter writer)
Parameters
Overrides
SelectGun(int)
Вызывается при выборе оружия из магазина
Declaration
public void SelectGun(int gunId)
Parameters
Type |
Name |
Description |
int |
gunId |
Выбранное оружие
|
Upgrade(UpgradableProperty)
Declaration
public void Upgrade(UpgradableProperty property)
Parameters
Implements