资源简介
愤怒的小鸟资源包{UI,music,C#}等一系列资源,仅供课堂学习开发使用!
代码片段和文件信息
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
// This is the PocketRPG weapon trail. For best results itterate it and your animation several times a frame.
// It is based on the Tron trails Unity example
// PocketRPG trails run faster than the framerate... (default is 300 frames a second)... that is how they are so smooth (30fps trails are rather jerky)
// This code was written by Evan Greenwood (of Free Lives) and used in the game PocketRPG by Tasty Poison Games.
// But you can use this how you please... Make great games... that‘s what this is about.
// This code is provided as is. Please discuss this on the Unity Forums if you need help.
//
class TronTrailSection
{
public Vector3 point;
public Vector3 upDir;
public float time;
public TronTrailSection() {
}
public TronTrailSection(Vector3 p float t) {
point = p;
time = t;
}
}
[RequireComponent(typeof(MeshFilter))]
[AddComponentMenu(“PocketRPG/Weapon Trail“)]
public class WeaponTrail : MonoBehaviour {
/*
Generates a trail that is always facing upwards using the scriptable mesh interface. (This is from the Tron Trails in Unity)
vertex colors and uv‘s are generated similar to the builtin Trail Renderer. But it DOES NOT RUN ITSELF LIKE THE TRAIL RENDERER. (there is no update method)
To use it
1. Create an empty game object (your weapon) with it‘s y axis pointing along the weapons blade.
2. Attach this script and a MeshRenderer
3. Then assign a particle material to the mesh renderer
4. Call it‘s Itterate method everytime you sample the animation (if you want a smooth trail this should be more than once a frame)
5. Call it‘s UpdateTrail method once a frame to rebuild the mesh
*/
#region Public
public float height = 2.0f;
public float time = 2.0f;
public bool alwaysUp = false;
public float minDistance = 0.1f;
public float timeTransitionSpeed = 1f;
public float desiredTime = 2.0f;
public Color startColor = Color.white;
public Color endColor = new Color(1 1 1 0);
#endregion
//
#region Temporary
Vector3 position;
float now = 0;
TronTrailSection currentSection;
Matrix4x4 localSpaceTransform;
#endregion
#region Internal
private Mesh mesh;
private Vector3[] vertices;
private Color[] colors;
private Vector2[] uv;
#endregion
#region Customisers
private MeshRenderer meshRenderer;
private Material trailMaterial;
#endregion
private List sections = new List();
void Awake() {
MeshFilter meshF = GetComponent(typeof(MeshFilter)) as MeshFilter;
mesh = meshF.mesh;
meshRenderer = GetComponent(typeof(MeshRenderer)) as MeshRenderer;
trailMaterial = meshRenderer.material;
}
public void StartTrail(float timeToTweenTo float fadeInTim
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-02-11 17:10 愤怒的小鸟\
目录 0 2018-02-11 17:09 愤怒的小鸟\AngryBird\
目录 0 2018-02-11 15:54 愤怒的小鸟\AngryBird\.vs\
目录 0 2018-02-11 15:54 愤怒的小鸟\AngryBird\.vs\AngryBird\
目录 0 2018-02-11 15:54 愤怒的小鸟\AngryBird\.vs\AngryBird\v15\
文件 113152 2018-02-11 17:09 愤怒的小鸟\AngryBird\.vs\AngryBird\v15\.suo
目录 0 2018-02-11 15:54 愤怒的小鸟\AngryBird\.vs\AngryBird\v15\Server\
目录 0 2018-02-11 17:09 愤怒的小鸟\AngryBird\.vs\AngryBird\v15\Server\sqlite3\
文件 0 2018-01-20 00:15 愤怒的小鸟\AngryBird\.vs\AngryBird\v15\Server\sqlite3\db.lock
文件 716800 2018-02-11 17:09 愤怒的小鸟\AngryBird\.vs\AngryBird\v15\Server\sqlite3\storage.ide
文件 18139 2018-02-11 15:58 愤怒的小鸟\AngryBird\AngryBird.csproj
文件 907 2018-01-20 00:15 愤怒的小鸟\AngryBird\AngryBird.sln
目录 0 2018-02-11 15:54 愤怒的小鸟\AngryBird\Assets\
目录 0 2018-02-11 15:54 愤怒的小鸟\AngryBird\Assets\Animation\
文件 213 2018-01-20 10:36 愤怒的小鸟\AngryBird\Assets\Animation.me
文件 1914 2018-01-20 10:46 愤怒的小鸟\AngryBird\Assets\Animation\BIRDS_1_171.controller
文件 229 2018-01-20 10:36 愤怒的小鸟\AngryBird\Assets\Animation\BIRDS_1_171.controller.me
文件 3607 2018-01-20 10:46 愤怒的小鸟\AngryBird\Assets\Animation\boom.anim
文件 229 2018-01-20 10:36 愤怒的小鸟\AngryBird\Assets\Animation\boom.anim.me
文件 6226 2018-01-20 16:36 愤怒的小鸟\AngryBird\Assets\Animation\Lose.anim
文件 229 2018-01-20 16:26 愤怒的小鸟\AngryBird\Assets\Animation\Lose.anim.me
文件 1907 2018-01-20 16:36 愤怒的小鸟\AngryBird\Assets\Animation\lose.controller
文件 229 2018-01-20 16:26 愤怒的小鸟\AngryBird\Assets\Animation\lose.controller.me
文件 8701 2018-01-20 21:55 愤怒的小鸟\AngryBird\Assets\Animation\pause.anim
文件 229 2018-01-20 18:18 愤怒的小鸟\AngryBird\Assets\Animation\pause.anim.me
文件 5616 2018-01-20 21:55 愤怒的小鸟\AngryBird\Assets\Animation\pausePanel.controller
文件 229 2018-01-20 18:18 愤怒的小鸟\AngryBird\Assets\Animation\pausePanel.controller.me
文件 8775 2018-01-20 21:55 愤怒的小鸟\AngryBird\Assets\Animation\resume.anim
文件 229 2018-01-20 18:20 愤怒的小鸟\AngryBird\Assets\Animation\resume.anim.me
文件 6374 2018-01-20 16:36 愤怒的小鸟\AngryBird\Assets\Animation\Win.anim
文件 229 2018-01-20 16:30 愤怒的小鸟\AngryBird\Assets\Animation\Win.anim.me
............此处省略2129个文件信息
相关资源
- Web程序设计--ASP.NET实用网站开发 MyP
- 基于C#三层架构的餐厅点餐管理系统
- MF000165-房产中介管理系统源码asp.net房
- 三层架构模板2018-05-14.zip
- 淘宝客小程序+后端.zip
- 第二代Kinect WPF开发从入门到精通资料
- C#设计模式+源码JamesW.Cooper.zip
- C#写的年会抽奖软件包含源代码.zip
- 上位机与PLC通讯dll.zip
- ASP.NET图书管理系统源码.zip
- EditorA.zip
- 影院管理系统c#毕业设计作品.zip
- MF000164-ASP.NET酒店管理系统源码.zip
- C#小区物业管理系统.zip
- 自己搜集的多达20个C#项目实战开发及
- 《C#入门经典(第7版)》中英文PDF书
- ASP.NET实用网站开发第3版主教材源程序
- B20_08_NNCase编译MobileNet_v1_1.0即tflite量化
- Unity3D脚本编程 使用C#语言开发跨平台
- C#中国象棋单机版.zip
- 实战突击 ASP.NET项目开发案例整合 源
- ASP.NET C# 大型综合管理系统源码 大型
- C#入门经典(第7版).zip
- yolov4_detect.zip
- QC1314留言板.zip
- Krypton.zip
- ASP.NET购物网站全部资源.zip
- Winform控件库-DevExpressComponents-14.zip
- Spire.Doc官网的免费版.zip
- C#和西门子1200PLC通讯.zip
评论
共有 条评论