原创 cocos實現長按,雙擊,點擊

cocos實現長按,雙擊,點擊 local Test = class("Test") local kDoubleTime = 1 function Test:ctor( ) self._longPressEnabled

原创 unity簡單服務器和客戶端

unity簡單服務器和客戶端 服務器 目的 在服務器收到客戶端消息時返回一條消息 服務器搭建流程 1.創建一個服務器實例 Socket 2.創建一個IPAdress併爲IPAdress添加地址 3.創建一個IPendPoint,

原创 矩陣第二節

二分查找 思想 在一個含有X個有序的元素序列中,查找一個元素n。第一步,判斷中n跟X/2的元素比較。如果小了,則繼續跟X/4比較。如果大了,則跟3/4X比較。直到找到元素n。時間複雜度爲log2X。 public class Bi

原创 unity C#將excel解析爲json

unity C#將excel解析爲json 本文將會使用到4個插件:Excel.dll , ICSharpCode.SharpZipLib.dll , SimpleJson.cs , System.Data.dll . 所有插件百

原创 hammingDistance

Hamming Distance 根據位的運算計算得到: 與:0010&0011得到0010; 4&1=0000 0000 0000 0000 0000 0000 0000 0000 或:4|1=0000 0000 0000

原创 DistributeCandies

Distribute Candies 第5天 第10題 Given an integer array with even length, where different numbers in this array represen

原创 飛鴿傳書

簡介:飛鴿傳書是王大大在給我們上網絡編程的時候讓我們做的一個例子。具體界面如下: 功能:在局域網內能夠發現使用飛鴿傳書的電腦,並可以與之聊天。實時監聽在線用戶,並反饋到表格中。 代碼:import java.awt.Border

原创 獲得Animator當前播放的AnimationClip

AnimatorClipInfoDescriptionInformation about clip being played and blended by the Animator.獲得Animator的當前AnimationClip和混

原创 Unity android調試

Android的兩種調試方法 1.使用MonoDelevelop斷點調試 1.將手機連接局域網 1.使用數據線連接主機 2.在cmd界面中輸入 adb tcpip 5555 2.出現 restarting in TCP mode

原创 KeyboardRow

Keyboard Row 第四天第7題 題目 Given a List of words, return the words that can be typed using letters of alphabet on only

原创 MergeTwoBinaryTrees

Merge Two Binary Trees 第二天 題目 Given two binary trees and imagine that when you put one of them to cover the other,

原创 Unity中InSpector重寫問題

unity中使用inspector的重寫問題 1.在InSpector的重寫要保存數據,這就要使用一下方法 方法名 使用說明 EditorUtility.SetDirty() 在5.3以後,標記場景的更改,不能再標記

原创 矩陣第一講

矩陣 特殊矩陣 1.零矩陣 所有矩陣的所有元素全都爲0 2.對角矩陣 一個n階方陣除對角線上的所有元素都爲0 2.數量矩陣 對角矩陣中對角線上元素爲常數, 3.單位矩陣 數量矩陣中對角線上上常數爲1

原创 cocos 實現富文本

cocos 實現富文本 例子: local str = string.format( "每次兌換扣除%s點活力,獲得%s經驗。", string.format( "<font size='20' fontPath='fo

原创 babelua點擊無反應

原文鏈接:https://blog.csdn.net/yu265096/article/details/52240125 babelua點擊無反應 參考該博客