Initial Commit
This commit is contained in:
commit
ee5c2f922d
2255 changed files with 547750 additions and 0 deletions
19
Assets/Scripts/Prefabs/Components/EnemyPrefabComponent.cs
Normal file
19
Assets/Scripts/Prefabs/Components/EnemyPrefabComponent.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
using UnityEngine;
|
||||
|
||||
namespace DefaultNamespace
|
||||
{
|
||||
public class EnemyPrefabComponent : MonoBehaviour
|
||||
{
|
||||
public AssetReferenceEnemyPrefab Prefab;
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
Prefab.LoadAssetAsync();
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
Prefab.ReleaseAsset();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c527b4bb994d495eaae275e8c569181d
|
||||
timeCreated: 1531488294
|
||||
Loading…
Add table
Add a link
Reference in a new issue