自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 Unity shader学习记录

unity兰伯特和半兰伯特光照明模型 在这里插入代码片 Shader "Mystudy/shaders/lanbot" { Properties { } SubShader { Tags { "RenderType"="Opaque" } LOD 100 Pass { Tags{ "lightMode"="ForwardBase"

2021-02-10 21:16:30 125

原创 c#中级教程-学习记录

属性 通过属性可以对字段设置“读取”和“写入” 例如: private int exprience; public int Exprience { get { return exprience; } set { exprience = value; } } 这里如果我们想要在其他类中对exprience读取和写入,可以通过访问Exprie

2020-12-18 12:13:08 232

原创 unity 扇形攻击

unity 扇形攻击 先判断角度,在判断半径 //扇形攻击 public bool UmbrellAttack(Transform attacker, Transform attacked, float angle, float radius) { Vector3 delaA = attacker.position - attacked.position; //得到两个物体之间的的角度 float temAngle=Mathf.Aco

2020-08-22 17:02:39 465

原创 Unity 矩形攻击

Unity 矩形攻击 2D游戏可以通过计算两个物体的距离与与半径比较,判断相交,相切,相离。 pos2-pos1<r2+r1(相交) pos2-pos1=r2+r1(相切) pos2-pos1>r2+r1(相离)

2020-08-22 16:07:23 317

原创 git提交文件(学习记录)

创建仓库 mkdir Unityarpgdemo 进入仓库 cd Unityarpgdemmo 初始化仓库 git init 将文件添加进暂存区 git add . (所有文件) 提交说明 git commit -m " first" 提交到远程仓库 git remote add origin htttps://github.com/dahua0316/Unity-rpg-demo.git git push -u master 输入账号和密码 报错处理 git remote rm origin .

2020-07-19 16:57:34 129

原创 unity ARPG音效模块封装总结

参考文档 AudioManagerSourceManagerClipsManager播放 using System.Collections; using System.Collections.Generic; using UnityEngine; public class AudioManager : MonoBehaviour { // Use this for initialization //单例模式 负责管理SoundManager ClipManager public

2020-07-08 14:10:30 270

原创 Unity ARPG 特效管理学习总结

Unity ARPG 特效管理学习总结 三个脚本 1.Effect Scripts//挂载在特效上,用在统计特效播放时间 2.Effect //具体的特效逻辑 3.Effect Manger//特效的管理,控制生成和销毁 具体的代码 //Effect Scripts class EffectScripts{ public float lifeTime; } //Effect class Effect{ public float lifeTime; private EffectScripts myScri

2020-07-06 08:31:06 349

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除