private void Start() { strikerPool = StrikerPool.Instance; if (shootPoint.childCount < 0 && Time.time >= timeToSpawnStriker) { SpawnStriker(); } }
// Use this for initialization void Awake() { if (Instance == null) { Instance = this; } else if (Instance != this) { Destroy(gameObject); } DontDestroyOnLoad(gameObject); InitializePool(); }