void Start() { spawner = FindObjectOfType <WhaleSpawner>(); fade = FindObjectOfType <FadeOutAndIn>(); EventBroadcaster.registerHandler <WhaleHasDiedEvent>(this); }
// Use this for initialization void Start() { image = GetComponent <Image>(); EventBroadcaster.registerHandler <WhaleSpawned>(this); EventBroadcaster.registerHandler <WhaleMovedFirst>(this); }