奇怪的大冒险源码


该资源是奇怪的大冒险一部分源码,图片资源,以及游戏逻辑,对初级中级程序猿的成长有一定的帮助。
资源截图
代码片段和文件信息
// 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.vsCrazyAdventurev14.suo

     文件       5120  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLibDemiLib.dll

     文件        747  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLibDemiLib.dll.mdb

    ..A..H.       176  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLibDemiLib.dll.mdb.meta

    ..A..H.       394  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLibDemiLib.dll.meta

     文件       1296  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLibDemiLib.xml

    ..A..H.       179  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLibDemiLib.xml.meta

     文件      16896  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLibEditorDemiEditor.dll

     文件       4854  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLibEditorDemiEditor.dll.mdb

    ..A..H.       176  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLibEditorDemiEditor.dll.mdb.meta

    ..A..H.       394  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLibEditorDemiEditor.dll.meta

     文件      15744  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLibEditorDemiEditor.xml

    ..A..H.       179  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLibEditorDemiEditor.xml.meta

     文件        103  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLibEditorImgswhiteSquare.png

    ..A..H.      1158  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLibEditorImgswhiteSquare.png.meta

     文件        107  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLibEditorImgswhiteSquareAlpha10.png

    ..A..H.      1158  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLibEditorImgswhiteSquareAlpha10.png.meta

     文件        107  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLibEditorImgswhiteSquareAlpha25.png

    ..A..H.      1158  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLibEditorImgswhiteSquareAlpha25.png.meta

     文件        107  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLibEditorImgswhiteSquareAlpha50.png

    ..A..H.      1164  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLibEditorImgswhiteSquareAlpha50.png.meta

    ..A..H.       193  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLibEditorImgs.meta

    ..A..H.       193  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLibEditor.meta

    ..A..H.       193  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDemiLib.meta

     文件     135168  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDOTweenDOTween.dll

     文件      51527  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDOTweenDOTween.dll.mdb

    ..A..H.        90  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDOTweenDOTween.dll.mdb.meta

    ..A..H.       351  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDOTweenDOTween.dll.meta

     文件     163579  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDOTweenDOTween.xml

    ..A..H.        93  2015-05-30 04:13  CrazyAdventureAssetsDemigiantDOTweenDOTween.xml.meta

............此处省略3104个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)