当初给Player的一个animation加了个animationEvent,后来与之关联的响应函数删除了,于是导致报错: ‘Player’ AnimationEvent ‘idleHalfEvent’ has no receiver! Are you missing a component? 接下来是想把这个animationEvent也删掉. 发现如果从下面animation窗口中删除: 则等下次重新打开工程,删除的animationEvent又会出来.所以这种删除方法是不行的. 正确的删除…
经过测试只要Animator跟继承monoBehaviour的类A在同一个节点上,就可以注册类A中的public 方法,含0或1个参数(int,float,object,string),注意:只能是0或1个参数 using UnityEngine; class TAnimEvent:MonoBehaviour { [SerializeField] private Animator mAnimator; public bool abc; void Start() { mAnimator = thi…
using UnityEngine; using System.Collections; public class setAnimationEvent : MonoBehaviour { public RuntimeAnimatorController m_runtimeAnimatorController; // Use this for initialization void Start () { m_runtimeAnimatorController = this.GetComponent…
来源:蝴蝶之梦天使 链接:http://www.jianshu.com/p/d333cf6ae4b0 在iOS开发中经常需要使用的或不常用的知识点的总结,几年的收藏和积累(踩过的坑). 一. iPhone Size 手机型号 屏幕尺寸 iPhone 4 4s 320 * 480 iPhone 5 5s 320 * 568 iPhone 6 6s 375 * 667 iphone 6 plus 6s plus 414 * 736 二. 给navigation Bar 设置 title 颜色 UIC…
文件同步工具Rsync 3.1.0发布.2013-09-29 上一个版本还是2011-09-23的3.0.9 过了2年多.Rsync基本是Linux上文件同步的标准了,也可以和inotify配合做实时同步.此版本有很多性能的增强(如重写的I/O层代码), 小功能改进增强以及Bug修正,建议升级. 完全改进: NEWS for rsync 3.1.0 (28 Sep 2013) Protocol: 31 (changed) Changes since 3.0.9: OUTPUT CHANGES:…
在iOS开发中经常需要使用的或不常用的知识点的总结,几年的收藏和积累(踩过的坑). 一. iPhone Size 手机型号 屏幕尺寸 iPhone 4 4s 320 * 480 iPhone 5 5s 320 * 568 iPhone 6 6s 375 * 667 iphone 6 plus 6s plus 414 * 736 二. 给navigation Bar 设置 title 颜色 UIColor *whiteColor = [UIColor whiteColor]; NSDictiona…
在iOS开发中经常需要使用的或不常用的知识点的总结,几年的收藏和积累(踩过的坑). 一. iPhone Size 手机型号 屏幕尺寸 iPhone 4 4s 320 * 480 iPhone 5 5s 320 * 568 iPhone 6 6s 375 * 667 iphone 6 plus 6s plus 414 * 736 二. 给navigation Bar 设置 title 颜色 UIColor *whiteColor = [UIColor whiteColor]; NSDictiona…
一. iPhone Size 手机型号 屏幕尺寸 iPhone 4 4s 320 * 480 iPhone 5 5s 320 * 568 iPhone 6 6s 375 * 667 iphone 6 plus 6s plus 414 * 736 二. 给navigation Bar 设置 title 颜色 UIColor *whiteColor = [UIColor whiteColor]; NSDictionary *dic = [NSDictionary dictionaryWithObje…
前言 前面学习了 RabbitMQ 基础,现在主要记录下学习 Spring Boot 整合 RabbitMQ ,调用它的 API ,以及中间使用的相关功能的记录. 相关的可以去我的博客/RabbitMQ 正文 我这里测试都是使用的是 topic 交换器,Spring Boot 2.0.0, jdk 1.8 配置 Spring Boot 版本 2.0.0 在 pom.xml 文件中引入 AMQP 的依赖 <dependency> <groupId>org.springframewor…