Import
temp
This commit is contained in:
parent
a87f0ed109
commit
a17810ffeb
114 changed files with 5184 additions and 5 deletions
47
Assets/otherTeam/OtherScripts/Duck.cs
Executable file
47
Assets/otherTeam/OtherScripts/Duck.cs
Executable file
|
@ -0,0 +1,47 @@
|
|||
using UnityEngine;
|
||||
|
||||
public class Duck : MonoBehaviour
|
||||
{
|
||||
|
||||
[SerializeField] protected float baseMovementSpeed;
|
||||
[SerializeField] protected int baseHP;
|
||||
[SerializeField] protected int baseArmor;
|
||||
|
||||
|
||||
[SerializeField] protected float baseAttackSpeed;
|
||||
[SerializeField] protected int manaToSpecialAttack;
|
||||
[SerializeField] protected Weapon weapon;
|
||||
|
||||
protected float currentMovementSpeed;
|
||||
protected int currentHP;
|
||||
protected int currentArmor;
|
||||
protected float currentAttackSpeed;
|
||||
|
||||
|
||||
//TODO WEAPON
|
||||
//TODO Special Ability
|
||||
|
||||
public virtual void activateSpecialAbility(){
|
||||
|
||||
}
|
||||
|
||||
public virtual void takeDamage(int damage){
|
||||
currentHP -= (damage > currentArmor) ? (damage - currentArmor) : 0;
|
||||
}
|
||||
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
currentMovementSpeed = baseMovementSpeed;
|
||||
currentHP = baseHP;
|
||||
currentArmor = baseArmor;
|
||||
currentAttackSpeed = baseAttackSpeed;
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue