Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- [System.Serializable]
- public class BasicStats {
- public float startLife;
- public float startMana;
- public int strenght; //Forca
- public int magic; //Inteligencia
- public int agility;
- public int baseDefense;
- public int baseAttack;
- public float baseRange;
- }
- public abstract class CharacterBase : DestrutiveBase {
- //Basics Atrributes
- public int currentLevel;
- public BasicStats basicStats;
- // Use this for initialization
- protected void Start () {
- currentLife = basicStats.startLife;
- }
- // Update is called once per frame
- protected void Update () {
- }
- public override void OnDestroyed (){
- Debug.Log (gameObject.name+" Está Morto"); //Aqui é quando o player morrer
- }
- public override void OnApplyDamage (){
- //
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement