Example #1
0
 public static void DEBUG_MSG(object s)
 {
     if (DEBUGLEVEL.DEBUG >= debugLevel)
     {
         HDebug.Log(getHead() + s);
     }
 }
Example #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;
            }
        }
Example #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");
        }
Example #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");
        }
Example #5
0
    private static async void handleException(Task task)
    {
        await task;

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

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

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

            HDebug.Log(id);
        }
Example #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));
                }
            }
        }
    }
 protected void DoReleaseSelectedSkill()
 {
     entity.DoReleaseSkill(entity.GetControllRemote().SelectedSkillID);
     HDebug.Log("entity " + entity.gameObject.name + ":" + "target " + entity.GetTargetEntity().gameObject.name);
 }
Example #10
0
 private void OnError(string message)
 {
     HDebug.Log("OnError : " + message);
 }
Example #11
0
 private void RemoteNotificationReceived(string text)
 {
     HDebug.Log("RemoteNotificationReceived : " + text);
 }
Example #12
0
 private void LocalNotificationReceived(string text)
 {
     HDebug.Log("LocalNotificationReceived : " + text);
 }
Example #13
0
 private void DevicePushIdReceived(string token)
 {
     HDebug.Log("DevicePushIdReceived : " + token);
 }
Example #14
0
 public void OnClickLocalNotiAllCancel()
 {
     HDebug.Log("All Cacenl");
     NotificationManager.Instance.CancelAllLocalNotifications();
 }
Example #15
0
 public void OnClickLocalNoti1MinCancel()
 {
     HDebug.Log("Cacenl HellgateNoti1Min");
     NotificationManager.Instance.CancelLocalNotification("HellgateNoti1Min");
 }