void Start()
    {
        spawner = FindObjectOfType <WhaleSpawner>();
        fade    = FindObjectOfType <FadeOutAndIn>();

        EventBroadcaster.registerHandler <WhaleHasDiedEvent>(this);
    }
示例#2
0
    // Use this for initialization
    void Start()
    {
        image = GetComponent <Image>();

        EventBroadcaster.registerHandler <WhaleSpawned>(this);
        EventBroadcaster.registerHandler <WhaleMovedFirst>(this);
    }