原创 03.EasyTouchTrigger
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Trigger : MonoBehaviou
原创 炮彈軌跡
using UnityEngine; public class TestSpeed : MonoBehaviour { public float time = 3; // 代表從A點出發到B經
原创 01.Socket介紹
01.02. 03.04.05. 06. 07. 08.
原创 1.異步
01.異步任務 class Program { static void Main(string[] args) { Simple simple=n
原创 01.EasyTouch
01.使用到easytouch 的腳本的場景都需要添加EasyTouch物體 解決報錯 #pragma warning disable 0618 02.腳本中引入 using HedgehogTeam.EasyTouch; 0
原创 03.卡牌拖動交換邏輯
01.卡牌基類接口 using System.Collections; using System.Collections.Generic; using UnityEngine; public interface ICard {
原创 01.UI和3D物體之間的事件
01.UI和3D物體層疊時,只響應UI public class SliderCube : MonoBehaviour { private int _index; void Start() {
原创 02.圓形圖片實現
1.父物體添加mask 02. Uv 求出每一塊的弧度 通過弧度可以求出角度 角度可以知道頂點信息 由頂點信息獲取三角面 using System.Collections; using System.Collections
原创 03.JavaScript數據類型number和string
01.js變量是動態類型可變的 02.數據類型分類 number最大值和最小值 console.log(Number.MAX_VALUE); //最大值 console.log(Number.MIN_VALUE);
原创 Navigation跳躍導航
Drop Height:代理跳落高度。(只能往下跳,不可往上跳)。表示尋路者可以跳落的高度限。 Jump Distance:代理跳躍距離。(往遠處跳躍的距離)。 表示尋路者的跳躍距離極限 01.勾選 Links 02.設置跳躍的
原创 02.QucikGesture
拖拽事件 添加腳本 using System.Collections; using System.Collections.Generic; using UnityEngine; public class QucikGestu
原创 搖桿製做
鏈接:https://pan.baidu.com/s/1TrCn20ucU_HSOAy7rwL6ow 密碼:x438 01.創建點擊的區域 輪盤 bg 和拖動的小圖標 02.創建搖桿控制界面腳本並賦值 using System.
原创 04.卡牌交換邏輯對象池
01.對象池 using System; using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary>
原创 07.XLua Lua訪問C#中的方法
01.new C#對象 你在C#這樣new一個對象: var newGameObj = new UnityEngine.GameObject(); 對應到Lua是這樣: local newGameObj = CS.UnityEng
原创 09.XLua Lua訪問C#中的方法
01.類型信息與泛型方法 [LuaCallCSharp] static class ExtendedMethod { public static Rigidbody AddComponentRigidbody(this