using VRDesigner;
using Cliffs.Portfolio;

public class PortfolioReadynessCheck: MonoBehaviour {

   void Awake ()
   {
      try
      {
         Core.PortfolioInitialize();
         Entitlements.IsUserEntitledToDopeWork().OnComplete(CallbackToSeeIfTheWork'sHotYet);
      }
      catch(UnderbakedException Fail)
      {
         Debug.LogError("Portfolio failed to initialize due to continued procrastination.");
         Debug.LogException(Fail);
         // Leave this site immediately and check back later.
         Cliffs.Portfolio.Quit();
      }
   }

   void YouWantToTalkToMe (Message msg)
   {
      if (msg.IsUrgent)
      {
         Debug.LogInstructions("just email me @ cliff@cliffwarren.com");
         VRDesigner.Colabs.Welcome();
      }
      else
      {
         Debug.Log("that's cool, no rush");
      }
   }
}