// Use this for initialization
 void Start()
 {
     if (!singleton_ || singleton_ == this)
     {
         singleton_ = this;
     }
     else
     {
         Destroy(this);
         Debug.LogError("More than one Notification Manager was created. This is not supported. Remove duplicate from scene.");
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Runs the notification checker and sends outstanding notifications and reminders
 /// </summary>
 public void SendNotifications()
 {
     NotifcationManager.SendNotifications();
 }