自定义博客皮肤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 162

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

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

2020-12-18 12:13:08 255

原创 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 499

原创 Unity 矩形攻击

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

2020-08-22 16:07:23 389

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

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

2020-07-19 16:57:34 163

原创 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 299

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

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

2020-07-06 08:31:06 399

空空如也

空空如也

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

TA关注的人

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