// Use this for initialization void Start() { Skill_Arrow arrow = Skill_Arrow.Create(); arrow.Call(); Debug.Log(arrow.GetCoolDown()); }
/// <summary> /// Create an Arrow skill script object. Used this way /// to prevent multiple instances of same skill being created. /// </summary> public static Skill_Arrow Create() { if (mine == null) { mine = new Skill_Arrow(); } return(mine); }
private Skill_Arrow() : base(0, "Shoots an Arrow", "Arrow") { mine = this; base.AddSkill(mine); }