资源简介
该资源是奇怪的大冒险一部分源码,图片资源,以及游戏逻辑,对初级中级程序猿的成长有一定的帮助。
代码片段和文件信息
// Author: Daniele Giardini - http://www.demigiant.com
// Created: 2015/03/12 15:55
using System;
using System.Collections.Generic;
using DG.Tweening.Core;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;
#if DOTWEEN_TMP
using TMPro;
#endif
#pragma warning disable 1591
namespace DG.Tweening
{
///
/// Attach this to a Gameobject to create a tween
///
[AddComponentMenu(“DOTween/DOTween Animation“)]
public class DOTweenAnimation : ABSAnimationComponent
{
public float delay;
public float duration = 1;
public Ease easeType = Ease.OutQuad;
public AnimationCurve easeCurve = new AnimationCurve(new Keyframe(0 0) new Keyframe(1 1));
public LoopType loopType = LoopType.Restart;
public int loops = 1;
public string id = ““;
public bool isRelative;
public bool isFrom;
public bool isIndependentUpdate = false;
public bool autoKill = true;
public bool isActive = true;
public bool isValid;
public Component target;
public DOTweenAnimationType animationType;
public bool autoPlay = true;
public float endValueFloat;
public Vector3 endValueV3;
public Color endValueColor = new Color(1 1 1 1);
public string endValueString = ““;
public Rect endValueRect = new Rect(0 0 0 0);
public bool optionalBool0;
public float optionalFloat0;
public int optionalInt0;
public RotateMode optionalRotationMode = RotateMode.Fast;
public ScrambleMode optionalScrambleMode = ScrambleMode.None;
public string optionalString;
int _playCount = -1; // Used when calling DOPlayNext
#region Unity Methods
void Awake()
{
if (!isActive || !isValid) return;
CreateTween();
}
void OnDestroy()
{
if (tween != null && tween.IsActive()) tween.Kill();
tween = null;
}
// Used also by DOTweenAnimationInspector when applying runtime changes and restarting
public void CreateTween()
{
if (target == null) {
Debug.LogWarning(string.Format(“{0} :: This tween‘s target is NULL because the animation was created with a DOTween Pro version older than 0.9.255. To fix this exit Play mode then simply select this object and it will update automatically“ this.gameobject.name) this.gameobject);
return;
}
Type t = target.GetType();
// Component c;
switch (animationType) {
case DOTweenAnimationType.None:
break;
case DOTweenAnimationType.Move:
if (t.IsSameOrSubclassOf(typeof(RectTransform))) tween = ((RectTransform)target).DOAnchorPos3D(endValueV3 duration optionalBool
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
..A..H. 149504 2016-10-22 13:17 CrazyAdventure\.vs\CrazyAdventure\v14\.suo
文件 5120 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib\DemiLib.dll
文件 747 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib\DemiLib.dll.mdb
..A..H. 176 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib\DemiLib.dll.mdb.me
..A..H. 394 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib\DemiLib.dll.me
文件 1296 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib\DemiLib.xm
..A..H. 179 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib\DemiLib.xm
文件 16896 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib\Editor\DemiEditor.dll
文件 4854 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib\Editor\DemiEditor.dll.mdb
..A..H. 176 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib\Editor\DemiEditor.dll.mdb.me
..A..H. 394 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib\Editor\DemiEditor.dll.me
文件 15744 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib\Editor\DemiEditor.xm
..A..H. 179 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib\Editor\DemiEditor.xm
文件 103 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib\Editor\Imgs\whiteSquare.png
..A..H. 1158 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib\Editor\Imgs\whiteSquare.png.me
文件 107 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib\Editor\Imgs\whiteSquareAlpha10.png
..A..H. 1158 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib\Editor\Imgs\whiteSquareAlpha10.png.me
文件 107 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib\Editor\Imgs\whiteSquareAlpha25.png
..A..H. 1158 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib\Editor\Imgs\whiteSquareAlpha25.png.me
文件 107 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib\Editor\Imgs\whiteSquareAlpha50.png
..A..H. 1164 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib\Editor\Imgs\whiteSquareAlpha50.png.me
..A..H. 193 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib\Editor\Imgs.me
..A..H. 193 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib\Editor.me
..A..H. 193 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DemiLib.me
文件 135168 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DOTween\DOTween.dll
文件 51527 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DOTween\DOTween.dll.mdb
..A..H. 90 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DOTween\DOTween.dll.mdb.me
..A..H. 351 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DOTween\DOTween.dll.me
文件 163579 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DOTween\DOTween.xm
..A..H. 93 2015-05-30 04:13 CrazyAdventure\Assets\Demigiant\DOTween\DOTween.xm
............此处省略3104个文件信息
- 上一篇:Compressedfile.7z
- 下一篇:51单片机计算器(程序+AD+仿真)
评论
共有 条评论