摘要:
由于插值是 l=a*t+b(1-t),因此使用下面的这段代码 spriteRenderer.color = Color.Lerp (color01, color02, lerV); 只要使得lerV(即t)在0到1之间来回变换,即可使得颜色在两个颜色之间来回变换 public class Coin 阅读全文
摘要:
首先见官方文档 In most cases you should not modify the velocity directly, as this can result in unrealistic behaviour. Don't set the velocity of an object ev 阅读全文
摘要:
2d平台跳跃游戏当相机移动的时候背景跟随进行微调移动,从而使得玩家获得3d的错觉 using System.Collections;using System.Collections.Generic;using UnityEngine; public class BackGroundParallax 阅读全文
摘要:
using System.Collections;using System.Collections.Generic;using UnityEngine; public class Player : MonoBehaviour { protected ContactFilter2D contactFi 阅读全文
摘要:
Shader的代码如下,主要是将透明度为1的像素点输出为白色,其中_BeAttack表示角色被攻击的泛白状态 // Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)' Shader "Cust 阅读全文
摘要:
1.在vs下利用文件系统发布asp.net文件 2.将生成的所有文件打包成ZIP 3.将zip文件复制并解压到远程windows server的自己创建的文件夹下 4.在windows server上添加iis服务,并添加网站,将目录添加为上面的文件夹 阅读全文
摘要:
1.添加IIS服务:对“我的电脑”右键,管理,点击服务和应用程序,如果下面没有”Internet Information Services(IIS)管理器“,打开控制面板,点击程序,启用或者关闭Windows功能,选择Internet Information Services。 2.添加网站:打开I 阅读全文
摘要:
在ASP.NET的数据源控件上添加mysql数据库连接,首先需要在windows系统下添加mysql的数据源才能在vs中添加数据源 1.在控制面板下打开系统与安全--》打开管理工具--》点击ODBC数据源,在用户数据源下(在windows server2012下需要在系统数据源下添加),点击添加,然 阅读全文
摘要:
1.点击发布 2.选择发布方式,这里选择文件系统,并选择发布的路径 3.配置相关参数 4.点击发布按钮 5.发布成功后文件夹下生成的文件 。。 阅读全文