Advertisement
Guest User

Skills.cs

a guest
Sep 21st, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.33 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class Skills : MonoBehaviour {
  6.  
  7.     private BasicObjectInfos objectinfo;
  8.     private string name;
  9.     private string tooltip;
  10.     private Sprite icon;
  11.     private bool target;
  12.     private bool selfcast;
  13.     private float cooldown;
  14.     private GameObject Animation;
  15.     private List<Skillverhalten> verhalten;
  16.     private float castTime; //secś
  17.     private float cost;
  18.  
  19.     public enum AbillityType
  20.     {
  21.         Spell,
  22.         Melee
  23.      
  24.    
  25.     }
  26.  
  27.     public Skills (BasicObjectInfos aBasicinfo, List<Skillverhalten> averhalten){
  28.         objectinfo = aBasicinfo;
  29.         verhalten = new List<Skillverhalten> ();
  30.         verhalten = averhalten;
  31.         cooldown = 0f;
  32.         target = false;
  33.         selfcast = false;
  34.  
  35.  
  36.  
  37.     }
  38.  
  39.     public Skills (BasicObjectInfos aBasicinfo, List<Skillverhalten> averhalten, bool atarget, float acooldown, GameObject aAnimation){
  40.         objectinfo = aBasicinfo;
  41.         verhalten = new List<Skillverhalten> ();
  42.         verhalten = averhalten;
  43.         cooldown = acooldown;
  44.         target = atarget;
  45.         selfcast = false;
  46.         Animation = aAnimation;
  47.  
  48.     }
  49.  
  50.  
  51.     public BasicObjectInfos Skillinfo
  52.     {
  53.         get {return objectinfo; }
  54.     }
  55.  
  56.     public List<Skillverhalten> Skillverhalten{
  57.         get{ return verhalten;  }
  58.     }
  59.  
  60.     public float Skillcooldown
  61.     {
  62.         get {return cooldown; }
  63.     }
  64.  
  65.  
  66.  
  67.     public void UseAbility(){
  68.      
  69.    
  70.     }
  71.  
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement