资源简介
以前自己用Flash做的小游戏重新用Unity复刻了一次,加强了美术效果以及优化了关卡
游戏名:「推箱子 3D」「Sokoban 3D
开发引擎:Unity
代码片段和文件信息
// Author: Daniele Giardini - http://www.demigiant.com
// Created: 2018/07/13
#if true // MODULE_MARKER
using System;
using UnityEngine;
#if UNITY_5 || UNITY_2017_1_OR_NEWER
using UnityEngine.Audio; // Required for AudioMixer
#endif
#pragma warning disable 1591
namespace DG.Tweening
{
public static class DOTweenModuleAudio
{
#region Shortcuts
#region Audio
/// Tweens an AudioSource‘s volume to the given value.
/// Also stores the AudioSource as the tween‘s target so it can be used for filtered operations
/// The end value to reach (0 to 1)The duration of the tween
public static Tweener DOFade(this AudioSource target float endValue float duration)
{
if (endValue < 0) endValue = 0;
else if (endValue > 1) endValue = 1;
return DOTween.To(() => target.volume x => target.volume = x endValue duration).SetTarget(target);
}
/// Tweens an AudioSource‘s pitch to the given value.
/// Also stores the AudioSource as the tween‘s target so it can be used for filtered operations
/// The end value to reachThe duration of the tween
public static Tweener DOPitch(this AudioSource target float endValue float duration)
{
return DOTween.To(() => target.pitch x => target.pitch = x endValue duration).SetTarget(target);
}
#endregion
#if UNITY_5 || UNITY_2017_1_OR_NEWER
#region AudioMixer (Unity 5 or Newer)
/// Tweens an AudioMixer‘s exposed float to the given value.
/// Also stores the AudioMixer as the tween‘s target so it can be used for filtered operations.
/// Note that you need to manually expose a float in an AudioMixerGroup in order to be able to tween it from an AudioMixer.
/// Name given to the exposed float to set
/// The end value to reachThe duration of the tween
public static Tweener DOSetFloat(this AudioMixer target string floatName float endValue float duration)
{
return DOTween.To(()=> {
float currVal;
target.GetFloat(floatName out currVal);
return currVal;
} x=> target.SetFloat(floatName x) endValue duration)
.SetTarget(target);
}
#region Operation Shortcuts
///
/// Completes all tweens that have this target as a reference
/// (meaning tweens that were started from this target or that had this target added as an Id)
/// and returns the total number of tweens completed
/// (meaning the tweens that don‘t have infinite loops and were not already complete)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-09-11 12:31 sokoban-master\
文件 1758 2018-09-11 12:31 sokoban-master\README.md
目录 0 2018-09-11 12:31 sokoban-master\Sokoban\
目录 0 2018-09-11 12:31 sokoban-master\Sokoban\Assets\
文件 172 2018-09-11 12:31 sokoban-master\Sokoban\Assets\CopyRight.me
目录 0 2018-09-11 12:31 sokoban-master\Sokoban\Assets\CopyRight\
文件 172 2018-09-11 12:31 sokoban-master\Sokoban\Assets\CopyRight\Developer.me
目录 0 2018-09-11 12:31 sokoban-master\Sokoban\Assets\CopyRight\Developer\
文件 27457 2018-09-11 12:31 sokoban-master\Sokoban\Assets\CopyRight\Developer\Jing.jpg
文件 1914 2018-09-11 12:31 sokoban-master\Sokoban\Assets\CopyRight\Developer\Jing.jpg.me
文件 30284 2018-09-11 12:31 sokoban-master\Sokoban\Assets\CopyRight\Developer\Owen.jpg
文件 1914 2018-09-11 12:31 sokoban-master\Sokoban\Assets\CopyRight\Developer\Owen.jpg.me
文件 30855 2018-09-11 12:31 sokoban-master\Sokoban\Assets\CopyRight\Developer\XingYuChen.jpg
文件 1914 2018-09-11 12:31 sokoban-master\Sokoban\Assets\CopyRight\Developer\XingYuChen.jpg.me
文件 783653 2018-09-11 12:31 sokoban-master\Sokoban\Assets\CopyRight\icon_01.png
文件 1914 2018-09-11 12:31 sokoban-master\Sokoban\Assets\CopyRight\icon_01.png.me
文件 722155 2018-09-11 12:31 sokoban-master\Sokoban\Assets\CopyRight\icon_02.png
文件 1914 2018-09-11 12:31 sokoban-master\Sokoban\Assets\CopyRight\icon_02.png.me
文件 82261 2018-09-11 12:31 sokoban-master\Sokoban\Assets\CopyRight\pieceS_icon.jpg
文件 1914 2018-09-11 12:31 sokoban-master\Sokoban\Assets\CopyRight\pieceS_icon.jpg.me
文件 172 2018-09-11 12:31 sokoban-master\Sokoban\Assets\Libs.me
目录 0 2018-09-11 12:31 sokoban-master\Sokoban\Assets\Libs\
文件 172 2018-09-11 12:31 sokoban-master\Sokoban\Assets\Libs\DOTween.me
目录 0 2018-09-11 12:31 sokoban-master\Sokoban\Assets\Libs\DOTween\
文件 187775 2018-09-11 12:31 sokoban-master\Sokoban\Assets\Libs\DOTween\DOTween.xm
文件 158 2018-09-11 12:31 sokoban-master\Sokoban\Assets\Libs\DOTween\DOTween.xm
文件 143360 2018-09-11 12:31 sokoban-master\Sokoban\Assets\Libs\DOTween\DOTween.dll
文件 55341 2018-09-11 12:31 sokoban-master\Sokoban\Assets\Libs\DOTween\DOTween.dll.mdb
文件 155 2018-09-11 12:31 sokoban-master\Sokoban\Assets\Libs\DOTween\DOTween.dll.mdb.me
文件 569 2018-09-11 12:31 sokoban-master\Sokoban\Assets\Libs\DOTween\DOTween.dll.me
文件 172 2018-09-11 12:31 sokoban-master\Sokoban\Assets\Libs\DOTween\Editor.me
............此处省略748个文件信息
- 上一篇:[软件调试].张银奎.随书光盘
- 下一篇:myServiceDemo
相关资源
- Unity.Studio.v0.9.0.9.zip
- Unity3D角色FBX模型带动作动画
- Statck_image.zip
- Unity3D创建简单漫游教程
- Unity3D汽车模型集合 Cars and Trucks Coll
- unity 仿THE LAB HTC VR VIVE瞬移系统
- Unity3D开发的简单赛车游戏
- unity 多点触控插件Touch Controls Kit v1.
- Ferr2D Terrain Tool - 快速制作2D卡通地形
- Unity3D上传图片以及解析二进制流
- UNITY3d人物模型+动作
- Unity3D官方赛车资源包
- Unity3D 之2d开发,飞机大战所有源代码
- Unity3D游戏开发流程与规范.ppt
- unity最新录屏插件
- u3d贪吃蛇VS方块
- Unity3d适合移动端的景深DOF效果
- UnityProXL授权破解.rar
- Roll A Ball Project
- Unity3DPatch_5.6.x.zip
- unity3d游戏框架消息机制
- Font+Setter-Packer
- Pocket+RPG+Weapon+Trails+武器拖尾效果(
- Mesh to Terrain
- Unity3D挥剑(剑痕特效)
- unity接科大讯飞在线语音合成Windows
- Behavior Designer - Behavior Trees for Everyon
- Unity实习报告
- Unity 5 Game Optimization
- Custom Pointer.unitypackage
评论
共有 条评论