示例#1
0
 // Use this for initialization
 void Start()
 {
     if (MissionDefine.missionActive.Contains("LOGIN_10_DAY"))
     {
         DatePassHelper.processIfNewDay("LastDayLogin", DatePassHelper.DateFormat.ddMMyyyy, () => {
             Mission.addDone(1, "LOGIN_10_DAY");
         }, null, true);
     }
     initMissions();
 }
示例#2
0
    public static void startCountDownSec(int start, int end = 0, Action <int> onUpdate = null, Action onFnish = null)
    {
        DatePassHelper datePassHelper = FindObjectOfType <DatePassHelper> ();

        if (datePassHelper == null)
        {
            GameObject obj = new GameObject("DatePassHelper");
            obj.AddComponent <DatePassHelper> ();
            datePassHelper = obj.GetComponent <DatePassHelper> ();
        }

        datePassHelper.callCountDownSec(start, end, onUpdate, onFnish);
    }