Beispiel #1
0
    public void ShowAlerts(bool show_alerts)
    {
        NewsFeedModel model = this.GetComponent <NewsFeedModel>();

        if (model != null)
        {
            model.SetShowAlerts(show_alerts);
        }
        else
        {
            Debug.LogError("NewsFeedController::ShowAlerts -- GameObject does not have \"Model\" reference!");
        }

        if (show_alerts)
        {
            //  Position List accordingly
            //  For now, i'm having the alerts just appear/disappear -- no "sliding" in fancy stuff yet
        }
    }
Beispiel #2
0
 public void ToggleAlerts()
 {
     mModel.SetShowAlerts(!mModel.ShowAlerts);
 }