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

14 lines
281 B
C#
Raw Normal View History

2022-12-28 14:56:13 +01:00
using UnityEngine;
public class UnlockSystem : MonoBehaviour
{
public DatabaseObject dataBase;
public void OnFireBaseLoaded()
{
foreach (Achievement achievement in dataBase.achievements)
{
achievement.unlock.Initialize();
}
}
}