Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class Skills : MonoBehaviour {
- private BasicObjectInfos objectinfo;
- private string name;
- private string tooltip;
- private Sprite icon;
- private bool target;
- private bool selfcast;
- private float cooldown;
- private GameObject Animation;
- private List<Skillverhalten> verhalten;
- private float castTime; //secś
- private float cost;
- public enum AbillityType
- {
- Spell,
- Melee
- }
- public Skills (BasicObjectInfos aBasicinfo, List<Skillverhalten> averhalten){
- objectinfo = aBasicinfo;
- verhalten = new List<Skillverhalten> ();
- verhalten = averhalten;
- cooldown = 0f;
- target = false;
- selfcast = false;
- }
- public Skills (BasicObjectInfos aBasicinfo, List<Skillverhalten> averhalten, bool atarget, float acooldown, GameObject aAnimation){
- objectinfo = aBasicinfo;
- verhalten = new List<Skillverhalten> ();
- verhalten = averhalten;
- cooldown = acooldown;
- target = atarget;
- selfcast = false;
- Animation = aAnimation;
- }
- public BasicObjectInfos Skillinfo
- {
- get {return objectinfo; }
- }
- public List<Skillverhalten> Skillverhalten{
- get{ return verhalten; }
- }
- public float Skillcooldown
- {
- get {return cooldown; }
- }
- public void UseAbility(){
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement