三国卡牌客户端基础资源仓库
hch
2025-09-14 887f92093871fffe068e343976e2b1539c12a4e0
0312 调整文件目录
2个文件已修改
5个文件已添加
141 ■■■■■ 已修改文件
Assets/Launch/Common/DontDestroyOnLoad.cs 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Launch/Common/DontDestroyOnLoad.cs.meta 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Launch/Common/FrameEffect.cs 95 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Launch/Common/FrameEffect.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Launch/Launch.asmdef 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Launch/Launch.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Plugins/Android.meta 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Launch/Common/DontDestroyOnLoad.cs
New file
@@ -0,0 +1,11 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DontDestroyOnLoad : MonoBehaviour
{
    void Awake()
    {
        DontDestroyOnLoad(gameObject);
    }
}
Assets/Launch/Common/DontDestroyOnLoad.cs.meta
New file
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ebddc3e48e1baa844a56615981c5c152
MonoImporter:
  externalObjects: {}
  serializedVersion: 2
  defaultReferences: []
  executionOrder: 0
  icon: {instanceID: 0}
  userData:
  assetBundleName:
  assetBundleVariant:
Assets/Launch/Common/FrameEffect.cs
New file
@@ -0,0 +1,95 @@
//--------------------------------------------------------
//    [Author]:           玩个游戏
//    [  Date ]:           Sunday, December 10, 2017
//--------------------------------------------------------
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using System;
    public class FrameEffect : MonoBehaviour
    {
        [SerializeField] Image m_Behaviour;
        [SerializeField] Sprite[] m_Sprites;
        float interval = 0.1f;
        int index = 0;
        float timer = 0f;
        float tempSumTime = 1f;
        [SerializeField] float onceTime = 1f;
        [SerializeField] float sumTime = 1f;
        [SerializeField] int aniIndex = 0;
        public bool loop = true;
        public event Action<int> CompleteAct;
        private void OnEnable()
        {
            if (m_Sprites != null && m_Sprites.Length > 0)
            {
                interval = onceTime / m_Sprites.Length;
                index = 0;
                timer = 0f;
                tempSumTime = sumTime;
                m_Behaviour.overrideSprite = m_Sprites[index];
            }
        }
        private void LateUpdate()
        {
            timer += Time.deltaTime;
            tempSumTime -= Time.deltaTime;
            if (m_Sprites == null || m_Sprites.Length == 0)
            {
                return;
            }
            if(tempSumTime > 0)
            {
                if (timer > interval)
                {
                    m_Behaviour.overrideSprite = m_Sprites[index];
                    index = (++index) % m_Sprites.Length;
                    timer -= interval;
                }
            }
            else
            {
                if(loop)
                {
                    tempSumTime = sumTime;
                }
                if(CompleteAct != null)
                {
                    CompleteAct(aniIndex);
                }
            }
        }
        public void SetSprites(Sprite[] sprites,float _totalTime)
        {
            m_Sprites = sprites;
            onceTime = _totalTime;
            sumTime = _totalTime;
            if (m_Sprites != null && m_Sprites.Length > 0)
            {
                interval = onceTime / m_Sprites.Length;
                index = 0;
                timer = 0f;
                tempSumTime = sumTime;
                m_Behaviour.sprite = m_Sprites[index];
                m_Behaviour.overrideSprite = m_Sprites[index];
            }
        }
    }
Assets/Launch/Common/FrameEffect.cs.meta
New file
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 34be87e10df140447985e4dd33c62ed8
timeCreated: 1512874078
licenseType: Pro
MonoImporter:
  serializedVersion: 2
  defaultReferences: []
  executionOrder: 0
  icon: {instanceID: 0}
  userData:
  assetBundleName:
  assetBundleVariant:
Assets/Launch/Launch.asmdef
@@ -11,7 +11,7 @@
    ],
    "includePlatforms": [],
    "excludePlatforms": [],
    "allowUnsafeCode": false,
    "allowUnsafeCode": true,
    "overrideReferences": false,
    "precompiledReferences": [],
    "autoReferenced": true,
Assets/Launch/Launch.cs
@@ -159,7 +159,7 @@
#endif
        LocalResManager.step = LocalResManager.LoadDllStep.None;
        // m_UICanvas.gameObject.SetActive(false);
        DestroySingleton();
        // DestroySingleton();
        Type type = _hotUpdateAss.GetType("LaunchInHot").BaseType;
        var getInstance = type.GetMethod("get_Instance", BindingFlags.Public | BindingFlags.Static);
Assets/Plugins/Android.meta
New file
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 72be2ba5e4893554984094086ec9dba2
folderAsset: yes
DefaultImporter:
  externalObjects: {}
  userData:
  assetBundleName:
  assetBundleVariant: