scripts
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
// Token: 0x0200122B RID: 4651
|
||||
public abstract class PrefabSpawner<T> : Spawner where T : Component
|
||||
{
|
||||
// Token: 0x06027F09 RID: 163593 RVA: 0x00B1F3C8 File Offset: 0x00B1D5C8
|
||||
protected override bool AFMFBONFMDO()
|
||||
{
|
||||
if (this.prefab == null)
|
||||
{
|
||||
Debug.LogWarning("PrefabSpawner.TrySpawn(): Prefab is null.");
|
||||
return false;
|
||||
}
|
||||
this.FCDPFLMFDBC = global::UnityEngine.Object.Instantiate<T>(this.prefab, base.transform, false);
|
||||
this.FCDPFLMFDBC.transform.localPosition = Vector3.zero;
|
||||
this.FCDPFLMFDBC.transform.localRotation = Quaternion.identity;
|
||||
this.FCDPFLMFDBC.transform.localScale = Vector3.one;
|
||||
this.FCDPFLMFDBC.gameObject.hideFlags = HideFlags.NotEditable;
|
||||
return true;
|
||||
}
|
||||
|
||||
// Token: 0x06027F0A RID: 163594 RVA: 0x00B1F478 File Offset: 0x00B1D678
|
||||
protected override void DMODLLAELMG()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x040063A9 RID: 25513
|
||||
[SerializeField]
|
||||
private T prefab;
|
||||
|
||||
// Token: 0x040063AA RID: 25514
|
||||
protected T FCDPFLMFDBC;
|
||||
}
|
||||
Reference in New Issue
Block a user