gather-and-defend/Assets/ArcherFireArrowSkill.cs
2024-11-14 11:01:21 -05:00

35 lines
740 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ArcherFireArrowSkill : SkillSO
{
public GameObject fireArrow;
public GameObject poisonArrow;
float fireDamage = 5;
float poisonDamage = 5;
// Start is called before the first frame update
void Start()
{
// activateSkill(this);
}
public void activateSkill(Ally ally){
if(PlayerPrefs.GetInt("Skill " + 0) == 1){
Debug.Log("Fire Arrow");
// ally.otherSkills[0] = this;
}
if (PlayerPrefs.GetInt("Skill " + 1) == 1){
Debug.Log("Poison Arrow");
}
}
// Update is called once per frame
void Update()
{
}
}