Esempio n. 1
0
 public static void DEBUG_MSG(object s)
 {
     if (DEBUGLEVEL.DEBUG >= debugLevel)
     {
         HDebug.Log(getHead() + s);
     }
 }
Esempio n. 2
0
        private void CallbackDownloader(AssetBundleInitalStatus initStatus)
        {
            SetLabelTextValue(status, "");
            this.aStatus = initStatus;

            if (initStatus == AssetBundleInitalStatus.HttpError)
            {
                HDebug.Log("Download resource error");
            }
            else if (initStatus == AssetBundleInitalStatus.HttpTimeover)
            {
                HDebug.Log("Download timeover");
            }
            else if (initStatus == AssetBundleInitalStatus.Start)
            {
                progress.SetActive(true);
                percent.SetActive(true);
                count.SetActive(true);
            }
            else
            {
                SetLabelTextValue(this.status, "Please touch");

                progress.SetActive(false);
                percent.SetActive(false);
                count.SetActive(false);

                goMainFlag = true;
            }
        }
Esempio n. 3
0
        public void OnClickLocalNoti5Min()
        {
            DateTime date = DateTime.Now.AddMinutes(5);

            HDebug.Log("register time : " + date);
            NotificationManager.Instance.ScheduleLocalNotification(date, "Hellgate schedule local notification 5 minute");
        }
Esempio n. 4
0
        public void OnClickLocalNoti30Second()
        {
            DateTime date = DateTime.Now.AddSeconds(30);

            HDebug.Log("register time : " + date);
            NotificationManager.Instance.ScheduleLocalNotification(date, "Hellgate schedule local notification 30 second", "HellgateNoti30Sec");
        }
Esempio n. 5
0
    private static async void handleException(Task task)
    {
        await task;

        //do nothing
        if (task.Exception != null)
        {
            HDebug.Log(task.Exception);
        }
    }
Esempio n. 6
0
        private void OnProgress(int progress)
        {
            if (progress >= 100)
            {
                SetButton(backButton, WebViewManager.Instance.CanGoBack());
                SetButton(forwardButton, WebViewManager.Instance.CanGoForward());
            }

            HDebug.Log("OnProgress : " + progress);
        }
Esempio n. 7
0
        public void OnClickGcmApnsId()
        {
            string id = NotificationManager.Instance.GetRegistrationId();

            if (id == "")
            {
                HDebug.Log("Please on click register");
                return;
            }

            HDebug.Log(id);
        }
Esempio n. 8
0
    void UpdateVisibleChunks()
    {
        if (go2 == null)
        {
            go2 = GameObject.CreatePrimitive(PrimitiveType.Capsule);
        }
        for (int i = 0; i < terrainChunksVisibleLastUpdate.Count; i++)
        {
            terrainChunksVisibleLastUpdate[i].SetVisible(false);
        }
        terrainChunksVisibleLastUpdate.Clear();

        currentChunkCoord.x    = Mathf.RoundToInt(viewerPosition_inChunkSpace.x / chunkSize.x);
        currentChunkCoord.y    = Mathf.RoundToInt(viewerPosition_inChunkSpace.y / (chunkSize.y));
        go2.transform.position = viewerPosition_inChunkSpace;
        HDebug.Log(currentChunkCoord);

        for (int yOffset = -chunksVisibleInViewDst.y; yOffset <= chunksVisibleInViewDst.y; yOffset++)
        {
            for (int xOffset = -chunksVisibleInViewDst.x; xOffset <= chunksVisibleInViewDst.x; xOffset++)
            {
                Vector2Int viewedChunkCoord = currentChunkCoord + new Vector2Int(xOffset, yOffset);
                HDebug.Log("sub " + viewedChunkCoord);
                IDictionary <Vector2Int, MapChunk> chunks = controller.GetMap().GetChunks();
                if (chunks.ContainsKey(viewedChunkCoord))
                {
                    chunks[viewedChunkCoord].UpdateMapChunk(viewerPosition_inChunkSpace, maxViewDst + betterView);
                    if (chunks[viewedChunkCoord].IsVisible())
                    {
                        terrainChunksVisibleLastUpdate.Add(chunks[viewedChunkCoord]);
                    }
                }
                else
                {
                    //terrainChunkDictionary.Add(viewedChunkCoord, new TerrainChunk(viewedChunkCoord, chunkSize, transform, mapMaterial));
                }
            }
        }
    }
Esempio n. 9
0
 protected void DoReleaseSelectedSkill()
 {
     entity.DoReleaseSkill(entity.GetControllRemote().SelectedSkillID);
     HDebug.Log("entity " + entity.gameObject.name + ":" + "target " + entity.GetTargetEntity().gameObject.name);
 }
Esempio n. 10
0
 private void OnError(string message)
 {
     HDebug.Log("OnError : " + message);
 }
Esempio n. 11
0
 private void RemoteNotificationReceived(string text)
 {
     HDebug.Log("RemoteNotificationReceived : " + text);
 }
Esempio n. 12
0
 private void LocalNotificationReceived(string text)
 {
     HDebug.Log("LocalNotificationReceived : " + text);
 }
Esempio n. 13
0
 private void DevicePushIdReceived(string token)
 {
     HDebug.Log("DevicePushIdReceived : " + token);
 }
Esempio n. 14
0
 public void OnClickLocalNotiAllCancel()
 {
     HDebug.Log("All Cacenl");
     NotificationManager.Instance.CancelAllLocalNotifications();
 }
Esempio n. 15
0
 public void OnClickLocalNoti1MinCancel()
 {
     HDebug.Log("Cacenl HellgateNoti1Min");
     NotificationManager.Instance.CancelLocalNotification("HellgateNoti1Min");
 }