登录
首页 » C# » Unity3D03

Unity3D03

于 2015-02-27 发布 文件大小:954KB
0 206
下载积分: 1 下载次数: 2

代码说明:

  Unity3D教程第03讲_Unity脚本入门 教程 unity 3d(03 Unity3D Tutorial Tutorial talk _Unity script unity 3d)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • wpf滑动效果 实例源码
    鼠标拖动时 控件滑动 截图: 核心代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Imaging;using System.Windows.Navigation;using System.Windows.Shapes;using System.Windows.Media.Animation;namespace FlashPrac2{ /// /// MainWindow.xaml 的交互逻辑 /// public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } /// /// 完成缓冲效果 /// /// 起始位置 /// 目标位置 /// 加速加速度 /// 减速加速度 /// 持续时间 private void DoMove(DependencyProperty dp, double to, double ar, double dr, double duration) { DoubleAnimation doubleAnimation = new DoubleAnimation();//创建双精度动画对象 doubleAnimation.To = to;//设置动画的结束值 doubleAnimation.Duration = TimeSpan.FromSeconds(duration);//设置动画时间线长度 doubleAnimation.AccelerationRatio = ar;//动画加速 doubleAnimation.DecelerationRatio = dr;//动画减速 doubleAnimation.FillBehavior = FillBehavior.HoldEnd;//设置动画完成后执行的操作 grdTransfer.BeginAnimation(dp, doubleAnimation);//设置动画应用的属性并启动动画 } private double pressedX; /// /// 点击鼠标,记录鼠标单击的位置 /// /// /// private void grdTest_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { ////获得鼠标点击的X坐标 pressedX = e.GetPosition(cvsGround).X; } ////鼠标释放时的操作 private void grdTest_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { double transferLeft = Convert.ToDouble(grdTransfer.GetValue(Canvas.LeftProperty)); //btn1.Content = transferLeft.ToString(); if (transferLeft > 0) { transferLeft = 0; } if (this.Width - transferLeft > cvsGround.Width) { transferLeft = this.Width - cvsGround.Width; } ////获得鼠标释放时的位置 double releasedX = e.GetPosition(cvsGround).X; ////获得距离间隔 double interval = releasedX - pressedX; pressedX = 0; ////计算出传送带要的目标位置 double to = transferLeft interval; ////移动 //btn1.Content = transferLeft.ToString() " " to.ToString(); // btn1.Content = transferLeft.ToString() " " to.ToString(); DoMove(Canvas.LeftProperty, to, 0.1, 0.5, 0.5); } }}
    2014-06-24下载
    积分:1
  • 本代码中包含max30101检测心率、血氧的优化算法,检测到的数据稳定
    本代码中包含max30101检测心率、血氧的优化算法,检测到的数据稳定,可以达到正常使用者的精确度要求
    2022-01-20 22:34:57下载
    积分:1
  • 189144remez
    说明:  Remez滤波,BPSK复合基带信号仿真,载波生成器!(Designed to meet the following indicators, such as ripple linear phase FIR low-pass filter)
    2011-03-02 21:40:27下载
    积分:1
  • NetDownMTR
    说明:  VC++ FTP、HTTP 多线程断点续传下载文件源码(VC ++ FTP, HTTP multi-thread breakpoint resume download file source code)
    2020-05-14 22:41:42下载
    积分:1
  • LED
    dspic30f4011单片机按键控制LED与UART通信(dspic30f4011 microcontroller buttons to control the LED and UART communication)
    2021-02-23 18:19:40下载
    积分:1
  • CANape使用介绍
    CANAPE使用介绍,包括软件安装,基本硬件配置方法等(Introduction of CANAPE)
    2018-05-10 04:19:24下载
    积分:1
  • C_MSN
    用C编写的简单仿MSN聊天软件,vs2005可正常编译,可作研究网络通信(Prepared with C a simple imitation MSN chat software, vs2005 can be a normal compile, can be used for research network communication)
    2009-11-15 00:22:04下载
    积分:1
  • FFT
    对一个含有多次谐波的信号作FFT变换,利用相关分析法提取它的工频信号。(For a signal containing multiple harmonics for FFT transform using correlation analysis to extract its frequency signal.)
    2013-06-20 09:10:53下载
    积分:1
  • C#免注册到系统调用大漠插件
    说明:  免注册C# 大漠注册 绝对可用 自己写的 资料难求 希望珍惜(Registration free C# desert registration can absolutely use the information written by yourself, which is hard to find. I hope to cherish)
    2021-02-24 20:09:39下载
    积分:1
  • 选择排序,冒泡排序
    调用time函数,输入一个在100到200之间的随机数,然后分别用选择排序和冒泡法排序。本次代码与上次比较,经过系统的整理,更方便阅读!
    2022-07-01 03:07:34下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载