Wizard_Of_Wak/Assets/1_Script/Test.cs

26 lines
537 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Test : MonoBehaviour
{
public Transform skillTr;
[SerializeField] SkillBase skill;
public static Test Instance;
private void Awake()
{
Instance = this;
}
void Update()
{
if(Input.GetKeyDown(KeyCode.T))
{
Tests();
}
}
void Tests()
{
PlayerManager.Instance.GetPlayerComponent<PlayerSkill>().SkillAdd(skill, PlayerSkill.SkillKeyType.M_Right);
}
}