Example #1
0
    private void clearEventListeners()
    {
        // First wipe our own.
        TrophyEarnedEvent = null;
        ScoreChangedEvent = null;
        TimerUpdatedEvent = null;

        GameLostEvent    = null;
        GameWonEvent     = null;
        GameEndedEvent   = null;
        GamePausedEvent  = null;
        GameResumedEvent = null;

        OfferWaypointsEvent = null;

        // Then tell others to wipe theirs.
        BallController.ClearEventListeners();
        ToastController.ClearEventListeners();
        ShipController.ClearEventListeners();
    }