private void Start() { spawnersManager = GetComponent <SpawnersManager>(); Cycles.CyclesManager.Instance.EclipseSettings.OnCycleStart.Register(gameObject, OnEclipseStart_Listener); Cycles.CyclesManager.Instance.EclipseSettings.OnCycleEnd.Register(gameObject, OnEclipseEnd_Listener); if (sheepSettings != null) { return; } var sheepSetts = AssetBundle.FindObjectsOfType <SheepSettings>(); if (sheepSetts.Length > 1) { Debug.LogWarning("Mushroom Spawner ambiguity: None sheep settings was provided and there are more then one in project!"); } if (sheepSetts.Length == 0) { Debug.LogError("Mushroom Spawner Problem: None Sheep settings were found!"); return; } sheepSettings = sheepSetts[0]; }
private void Start() { spawnersManager = GetComponent <SpawnersManager>(); }