Show / Hide Table of Contents

Class PlayerCharacter

Inheritance
object
Object
Component
Behaviour
MonoBehaviour
Object
BaseCharacter
PlayerCharacter
Implements
IAttackable
Namespace: BaseDefense.Characters
Assembly: BaseDefense.dll
Syntax
[RequireComponent(typeof(ItemCollecting), typeof(DisplayHealthPoints))]
public sealed class PlayerCharacter : BaseCharacter, IAttackable

Methods

Awake()

Declaration
protected override void Awake()
Overrides
BaseCharacter.Awake()

Constructor(JoystickController, Shop, DisplayingUI)

Declaration
[Inject]
public void Constructor(JoystickController joystick, Shop shop, DisplayingUI displayingUI)
Parameters
Type Name Description
JoystickController joystick
Shop shop
DisplayingUI displayingUI

Hit(float)

Declaration
public override void Hit(float damage)
Parameters
Type Name Description
float damage
Overrides
BaseCharacter.Hit(float)

Load(GameDataReader)

Declaration
public override void Load(GameDataReader reader)
Parameters
Type Name Description
GameDataReader reader
Overrides
BaseCharacter.Load(GameDataReader)

OnDeath()

Declaration
protected override void OnDeath()
Overrides
BaseCharacter.OnDeath()

Save(GameDataWriter)

Declaration
public override void Save(GameDataWriter writer)
Parameters
Type Name Description
GameDataWriter writer
Overrides
BaseCharacter.Save(GameDataWriter)

SelectGun(int)

Вызывается при выборе оружия из магазина

Declaration
public void SelectGun(int gunId)
Parameters
Type Name Description
int gunId

Выбранное оружие

Upgrade(UpgradableProperty)

Declaration
public void Upgrade(UpgradableProperty property)
Parameters
Type Name Description
UpgradableProperty property

Implements

IAttackable
In This Article
Back to top Generated by DocFX