摘要: Animation:动画组件用于播放动画AnimationState:动画状态,可以获取动画是长度,名称,播放位置,速度等Animator:Mecanim动画系统中的动画RuntimeAnimatorController:在运行时你可以通过他改变动画内容Animator是动画控制器,RuntimeAnimatorController是指运行中的动画控制器,RuntimeAnimatorController中可以包含多个Animation,_animator.GetNextAnimatorStateInfo(0).IsName("Idle_A")//判断当前播放的是哪个动画 阅读全文
posted @ 2014-03-26 16:50 古刹红罗 阅读(906) 评论(0) 推荐(0) 编辑
摘要: using UnityEngine;using System.Collections;/// /// 2014_3_26 修改/// [AddComponentMenu("MyGame/RocketBase")]public class RocketBase : MonoBehaviour { //子弹的发射的间隔 public float _rate = 1; //子弹飞行的速度 public float _speed = 1; //子弹的生存时间/攻击范围 public float _liveTime = 2; //子弹的威力 public ... 阅读全文
posted @ 2014-03-26 00:55 古刹红罗 阅读(238) 评论(0) 推荐(0) 编辑
摘要: using UnityEngine;using System.Collections;using System.Collections.Generic;/// /// 2014_3_26 修改/// [AddComponentMenu("MyGame/PlayerBase")]public class PlayerBase : MonoBehaviour { //飞机控制开关 public bool _isActive=true; //飞机的速度 [SerializeField] private float _speed=10; //飞机移动的方向 p... 阅读全文
posted @ 2014-03-26 00:53 古刹红罗 阅读(320) 评论(0) 推荐(0) 编辑