This commit is contained in:
wulongxiao 2024-11-13 17:59:42 +08:00
parent 072a7e73ac
commit 2991afa813
8 changed files with 386 additions and 8221 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 6aafdf60c5b2e8f4b8353647248765c8
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,45 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class SpriteAniation : MonoBehaviour
{
[Header("帧动画的图")]
public List<Sprite> sprites=new List<Sprite>();
[Header("播放动画的image")]
public Image image;
[Header("帧时间,单位毫秒默认100")]
public float Aintime=100f;
private int index=0;
// Start is called before the first frame update
void Start()
{
if (image==null)
{
Debug.LogError("image is null");
}
if (sprites.Count==0)
{
Debug.LogError("sprites is not");
}
InvokeRepeating("ainstart",0f,(Aintime / 1000));
}
void ainstart()
{
image.overrideSprite = sprites[index];
index++;
if (index> sprites.Count-1)
{
index = 0;
}
}
private void OnDestroy()
{
sprites = null;
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d92d400040e59ed43a15639f04e5c455
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -1,12 +1,12 @@
fileFormatVersion: 2
guid: d6788be4efab6f64cb842d199a797d8b
guid: 6189404d3c0ffc44e90c1b7865ed7dd0
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 1
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
@ -36,13 +36,13 @@ TextureImporter:
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 0
wrapV: 0
wrapU: 1
wrapV: 1
wrapW: 0
nPOTScale: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
@ -51,9 +51,9 @@ TextureImporter:
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 0
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
@ -107,7 +107,7 @@ TextureImporter:
outline: []
physicsShape: []
bones: []
spriteID:
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 572 KiB

View File

@ -149,7 +149,7 @@ public class Logo_in : mount
IEnumerator LoadSceneWithProgress()
{
// ¿ªÊ¼Òì²½¼ÓÔس¡¾°
AsyncOperation asyncLoad = SceneManager.LoadSceneAsync(JumpScene.scene_Main);
AsyncOperation asyncLoad = SceneManager.LoadSceneAsync(JumpScene.cultivation_gold_coin_Island);
asyncLoad.allowSceneActivation = false;
float timer = 0f;