UnitySerializedReferenceUI/Samples~/ExamplesAchievementSysemAssembly/Achievements/IPlatform.cs

54 lines
1.1 KiB
C#
Raw Normal View History

2022-12-28 14:56:13 +01:00
using UnityEngine;
public interface IPlatform
{
public string AchievementKey { get; }
}
[System.Serializable]
public class PC : IPlatform
{
public string AchievementKey => achievementKey;
[SerializeField]
private string achievementKey;
}
[System.Serializable]
public class PS4 : IPlatform
{
public string AchievementKey => achievementKey;
[SerializeField]
private string achievementKey;
}
[System.Serializable]
public class PS5 : IPlatform
{
public string AchievementKey => achievementKey;
[SerializeField]
private string achievementKey;
}
[System.Serializable]
public class XBOX : IPlatform
{
public string AchievementKey => achievementKey;
[SerializeField]
private string achievementKey;
}
[System.Serializable]
public class Quest : IPlatform
{
public string AchievementKey => achievementKey;
[SerializeField]
private string achievementKey;
}
[System.Serializable]
public class SteamDeck : IPlatform
{
public string AchievementKey => achievementKey;
[SerializeField]
private string achievementKey;
}