void Awake() { if (instance == null) instance = this; else Destroy(this); ActivePool = new List<PickupBase>(); InActivePool = new List<PickupBase>(); }
public void Initialize() { if (!InitializeSingleton(this)) { return; } TRexPool = GetComponentInChildren <TRexPool>(); AsteroidPool = GetComponentInChildren <AsteroidPool>(); PickupPool = GetComponentInChildren <PickupPool>(); QuicksandPool = GetComponentInChildren <QuicksandPool>(); }
void Update() { if (instance == null) instance = this; }