2D-Platformer/Assets/Scripts/Prefabs/Components/EnemyPrefabComponent.cs
2022-02-12 12:53:50 +02:00

19 lines
No EOL
278 B
C#

using UnityEngine;
namespace DefaultNamespace
{
public class EnemyPrefabComponent : MonoBehaviour
{
public AssetReferenceEnemyPrefab Prefab;
private void OnEnable()
{
Prefab.LoadAssetAsync();
}
private void OnDisable()
{
Prefab.ReleaseAsset();
}
}
}