01 2021 档案

摘要:第一行属性名字,第二行 类型。 对于自定义类型需要在 TypeSetValue<T> 添加对应类型的转换。 tableIndex 指的是Excal下图表的索引。 //读取Excal public static List<T> ReadExcal<T>(string path,int tableInd 阅读全文
posted @ 2021-01-30 17:09 wsfw 阅读(92) 评论(0) 推荐(0)
摘要:Excal格式要求 第一行是类型名 第二行是类型 例如: string name; string是类型,name是类型名。 具体代码 [MenuItem("Tools/ExcalToModel.cs")] public static void GenerationModel() { string s 阅读全文
posted @ 2021-01-30 15:18 wsfw 阅读(232) 评论(0) 推荐(0)
摘要:状态基类:所有状态继承自它 public abstract class IState { public virtual AnimState selfState { get; } public abstract int animHash { get; } public virtual void Ent 阅读全文
posted @ 2021-01-28 17:33 wsfw 阅读(85) 评论(0) 推荐(0)
摘要:using UnityEngine; public class PlayerCamera3rd : MonoBehaviour { Vector3 m_defaultDir; Transform m_PlayerTransform; Vector3 m_RotateValue; Vector3 m_ 阅读全文
posted @ 2021-01-28 17:25 wsfw 阅读(127) 评论(0) 推荐(0)
摘要:hbm.xml 文件属性复制到输出目录设置为不复制,生成操作设置为嵌入的资源,否则报错 主键生成方式<generator class="native"> </generator> mysql表主键需设置成自动增长 否则包报错 阅读全文
posted @ 2021-01-26 18:26 wsfw 阅读(53) 评论(0) 推荐(0)
摘要:跟着CatLike大神的教程敲了一遍,记录下学习心得。地址:https://catlikecoding.com/unity/tutorials/ 通过刚体移动。 一、复合运算符赋值 desiredJump ,使 desiredJump在接受到按键输入后为True,直到主动赋值为false,它才为fa 阅读全文
posted @ 2021-01-25 13:37 wsfw 阅读(111) 评论(0) 推荐(0)
摘要:跟着CatLike大神的教程敲了一遍,记录下学习心得。地址:https://catlikecoding.com/unity/tutorials/ 通过Transform的position移动。 一、通过加速度限制运动物体的速度改变量可以使物体运动更平滑 float maxSpeedChange = 阅读全文
posted @ 2021-01-24 20:53 wsfw 阅读(168) 评论(0) 推荐(0)
摘要:如何在Clip范围内执行相应的操作 有两种方法: 官方的方法(一)、通过playable.GetInputWeight(i),获得Weight,在播放到Clip范围内如果没有过渡的话Weight=1,如果没有Clip范围内,Weight=0; 并在ProcessFrame 每帧判断Weight。 ( 阅读全文
posted @ 2021-01-22 14:40 wsfw 阅读(538) 评论(0) 推荐(0)
摘要:本人才疏学浅,如有错误还忘指正。 开发目的 本来是想用unityEditor从零写一个,后来发现unityTimeLine提供了这个功能,就使用TimeLine制作了。 通常动作游戏中的动作常伴随着复杂的随着时间变化的事件,所以开发动作游戏需要对动画逐帧去控制(如音效,特效,检测Box,按键检测,屏 阅读全文
posted @ 2021-01-13 16:41 wsfw 阅读(942) 评论(0) 推荐(0)
摘要:using UnityEngine; using System; using System.Collections.Generic; public abstract class ISQLOperation { public abstract void CreateDateBase(string pa 阅读全文
posted @ 2021-01-12 21:09 wsfw 阅读(224) 评论(0) 推荐(0)
摘要:using System; using System.Collections; using UnityEngine; using UnityEngine.Networking; public enum AssetLoadMode { Resource, AssetBundle, WebRequest 阅读全文
posted @ 2021-01-12 21:06 wsfw 阅读(1067) 评论(0) 推荐(1)
摘要:using System; using System.Collections; using UnityEngine; using UnityEngine.Events; using UnityEngine.SceneManagement; public class SceneComponent : 阅读全文
posted @ 2021-01-12 21:02 wsfw 阅读(131) 评论(0) 推荐(0)
摘要:using System; using System.Collections; using System.IO; using System.Xml; using UnityEngine; using UnityEngine.SceneManagement; public enum GameModel 阅读全文
posted @ 2021-01-12 20:55 wsfw 阅读(233) 评论(0) 推荐(0)