Advertisement
keivy349

Untitled

Mar 23rd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. [System.Serializable]
  6. public class BasicStats {
  7. public float startLife;
  8. public float startMana;
  9. public int strenght; //Forca
  10. public int magic; //Inteligencia
  11. public int agility;
  12. public int baseDefense;
  13. public int baseAttack;
  14. public float baseRange;
  15. }
  16.  
  17. public abstract class CharacterBase : DestrutiveBase {
  18.  
  19.  
  20. //Basics Atrributes
  21. public int currentLevel;
  22. public BasicStats basicStats;
  23.  
  24.  
  25.  
  26. // Use this for initialization
  27. protected void Start () {
  28. currentLife = basicStats.startLife;
  29. }
  30.  
  31. // Update is called once per frame
  32. protected void Update () {
  33.  
  34. }
  35.  
  36. public override void OnDestroyed (){
  37. Debug.Log (gameObject.name+" Está Morto"); //Aqui é quando o player morrer
  38. }
  39.  
  40. public override void OnApplyDamage (){
  41. //
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement