31 lines
826 B
C#
31 lines
826 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine.EventSystems;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using System;
|
|
|
|
public class SkillTreePopUpManager : MonoBehaviour
|
|
{
|
|
public int IDSkill;
|
|
public TextMeshProUGUI _confirmText;
|
|
|
|
public void PressedSkill(SkillTreeItem skillSelected){
|
|
IDSkill = skillSelected.SkillID;
|
|
_confirmText.text = "Êtes-vous sûr de vouloir selectionner " + skillSelected.DisplayName;
|
|
}
|
|
|
|
public void Validate()
|
|
{
|
|
Debug.Log(Archer.SkillArcher.FireArrow.GetHashCode());
|
|
PlayerPrefs.SetInt("Skill " + Archer.SkillArcher.FireArrow.GetHashCode(), 1);
|
|
gameObject.SetActive(false);
|
|
Debug.Log("Valider!");
|
|
}
|
|
|
|
public void OnRefuse(){
|
|
gameObject.SetActive(false);
|
|
Debug.Log("Refuser!");
|
|
}
|
|
}
|