You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
545 B
C#
18 lines
545 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
[CreateAssetMenu(menuName = "Game/Upgrades/Member Upgrade")]
|
|
public class MemberUpgrades : Upgrades
|
|
{
|
|
[SerializeField] private GameObject[] memberPrefab;
|
|
[SerializeField] private Sprite silhouetteIcon;
|
|
|
|
public GameObject MemberPrefab => memberPrefab[index];
|
|
public override UpgradesType GetUpgradeType() => UpgradesType.Member;
|
|
public Sprite SilhouetteIcon => silhouetteIcon;
|
|
int index;
|
|
private void Awake()
|
|
{
|
|
index = PlayerPrefs.GetInt("selectedCharacterIndex");
|
|
}
|
|
} |