摘要: AIManager 管理所有阵营的AI using System.Collections; using System.Collections.Generic; using UnityEngine; public enum Camp{ Player, Enemy, NPC, Build } publi 阅读全文
posted @ 2021-02-07 22:18 wsfw 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 编写一个KeyCodeListener Playables 实现主要细节(使用到插件odin) 1.针对不同按键操作有不同应对方式:比如正常按下,长按,组合按键 2.将动画片段帧分为可输入帧范围和执行成功输入的可执行的帧范围 3.利用编辑器通过枚举控制编辑器属性显示隐藏。 [Serializable 阅读全文
posted @ 2021-02-03 21:44 wsfw 阅读(175) 评论(0) 推荐(0) 编辑
摘要: using System.Collections; using System.Collections.Generic; using UnityEngine; public class ShowCapsuleColider : MonoBehaviour { //画线用的材质球 Material li 阅读全文
posted @ 2021-02-03 15:20 wsfw 阅读(385) 评论(1) 推荐(0) 编辑
摘要: 原文地址: https://blog.csdn.net/amnrwlm8593/article/details/102253392/ Bounds bounds = GetComponent<BoxCollider>().bounds; Vector3 v3Center = bounds.cente 阅读全文
posted @ 2021-02-03 14:21 wsfw 阅读(245) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class ShowSphereColider : MonoBehaviour { //画线用的材质 阅读全文
posted @ 2021-02-03 14:10 wsfw 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 第一行属性名字,第二行 类型。 对于自定义类型需要在 TypeSetValue<T> 添加对应类型的转换。 tableIndex 指的是Excal下图表的索引。 //读取Excal public static List<T> ReadExcal<T>(string path,int tableInd 阅读全文
posted @ 2021-01-30 17:09 wsfw 阅读(77) 评论(0) 推荐(0) 编辑
摘要: Excal格式要求 第一行是类型名 第二行是类型 例如: string name; string是类型,name是类型名。 具体代码 [MenuItem("Tools/ExcalToModel.cs")] public static void GenerationModel() { string s 阅读全文
posted @ 2021-01-30 15:18 wsfw 阅读(184) 评论(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 阅读(70) 评论(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 阅读(99) 评论(0) 推荐(0) 编辑
摘要: hbm.xml 文件属性复制到输出目录设置为不复制,生成操作设置为嵌入的资源,否则报错 主键生成方式<generator class="native"> </generator> mysql表主键需设置成自动增长 否则包报错 阅读全文
posted @ 2021-01-26 18:26 wsfw 阅读(49) 评论(0) 推荐(0) 编辑