protected override void OnPrefabInit() { instance = this; prefab.gameObject.SetActive(false); breathPrefab.SetActive(false); co2Pool = new ObjectPool(InstantiateCO2, 16); breathPool = new ObjectPool(InstantiateBreath, 16); }
public static void DestroyInstance() { instance = null; }