add project files
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
using UnityEngine;
|
||||
using OHM.UnityToolkit.Localization;
|
||||
|
||||
[CreateAssetMenu(fileName = "Pickup Skin Def", menuName = "GameSqueleton/Pickup Skin Def")]
|
||||
public class PickupsSkinDef : CustomizableDef, ILevelLocked
|
||||
{
|
||||
public long unlockLevel;
|
||||
|
||||
public GameObject prefabGood;
|
||||
|
||||
public GameObject prefabBad;
|
||||
|
||||
public string GetLocalizedName()
|
||||
{
|
||||
return GetLocalizedName(base.name);
|
||||
}
|
||||
|
||||
public static string GetLocalizedName(string skinId)
|
||||
{
|
||||
return LocalizationManager.Instance.Localize(("skin_" + skinId).ToLowerInvariant());
|
||||
}
|
||||
|
||||
[ContextMenu("TEST")]
|
||||
private void TEST()
|
||||
{
|
||||
AppController app = UnityEngine.Object.FindObjectOfType<AppController>();
|
||||
if (app != null)
|
||||
{
|
||||
app.PickupsSkinsController.SetCurrentValue(this);
|
||||
}
|
||||
}
|
||||
|
||||
public long GetUnlockLevel()
|
||||
{
|
||||
return 0L;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user