Commit afbc8f3e authored by rftpool36's avatar rftpool36
Browse files
parents aa8db2ec a4959b4e
fileFormatVersion: 2
guid: 62e78873c12134612b44928996671ad9
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 7
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: 1
wrapV: 1
wrapW: -1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 2
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
- serializedVersion: 2
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
vertices: []
indices:
edges: []
weights: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
......@@ -166,6 +166,25 @@ GameObject:
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!1 &1223445290072826
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
serializedVersion: 6
m_Component:
- component: {fileID: 224076193721104780}
- component: {fileID: 222855401135863450}
- component: {fileID: 114950968182963396}
- component: {fileID: 114877897047667776}
- component: {fileID: 225764041821693614}
m_Layer: 5
m_Name: cat
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!1 &1240072470433974
GameObject:
m_ObjectHideFlags: 1
......@@ -4492,6 +4511,43 @@ MonoBehaviour:
m_CallState: 2
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
--- !u!114 &114877897047667776
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1223445290072826}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c643bb82963854dbe935ee2af5e82529, type: 3}
m_Name:
m_EditorClassIdentifier:
image: {fileID: 114950968182963396}
curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 2
outSlope: 2
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
- serializedVersion: 3
time: 1
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0
outWeight: 0
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
anim: {fileID: 1223445290072826}
--- !u!114 &114893798742805450
MonoBehaviour:
m_ObjectHideFlags: 1
......@@ -4749,6 +4805,33 @@ MonoBehaviour:
- {fileID: 0}
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!114 &114950968182963396
MonoBehaviour:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1223445290072826}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 0
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Sprite: {fileID: 21300000, guid: 62e78873c12134612b44928996671ad9, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
--- !u!114 &114952034593471708
MonoBehaviour:
m_ObjectHideFlags: 1
......@@ -5266,6 +5349,13 @@ CanvasRenderer:
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1211698959411490}
m_CullTransparentMesh: 0
--- !u!222 &222855401135863450
CanvasRenderer:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1223445290072826}
m_CullTransparentMesh: 0
--- !u!222 &222860369742822830
CanvasRenderer:
m_ObjectHideFlags: 1
......@@ -5354,6 +5444,24 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!224 &224076193721104780
RectTransform:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1223445290072826}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -50}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 224271593353600920}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 200, y: 200}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!224 &224099928081616378
RectTransform:
m_ObjectHideFlags: 1
......@@ -5523,7 +5631,7 @@ RectTransform:
- {fileID: 224836014205235822}
- {fileID: 224716101592567454}
m_Father: {fileID: 224271593353600920}
m_RootOrder: 2
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.5}
m_AnchorMax: {x: 0, y: 0.5}
......@@ -5558,6 +5666,7 @@ RectTransform:
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 224076193721104780}
- {fileID: 224586092161048296}
- {fileID: 224434009323263788}
- {fileID: 224255405025245520}
......@@ -5737,7 +5846,7 @@ RectTransform:
- {fileID: 224454230718214120}
- {fileID: 224110046425585104}
m_Father: {fileID: 224271593353600920}
m_RootOrder: 1
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.5}
m_AnchorMax: {x: 0, y: 0.5}
......@@ -5942,7 +6051,7 @@ RectTransform:
- {fileID: 224688438890024546}
- {fileID: 224149181502529502}
m_Father: {fileID: 224271593353600920}
m_RootOrder: 0
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
......@@ -6056,7 +6165,7 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 224271593353600920}
m_RootOrder: 3
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
......@@ -6411,6 +6520,17 @@ CanvasGroup:
m_Interactable: 1
m_BlocksRaycasts: 1
m_IgnoreParentGroups: 0
--- !u!225 &225764041821693614
CanvasGroup:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 1223445290072826}
m_Enabled: 1
m_Alpha: 1
m_Interactable: 1
m_BlocksRaycasts: 1
m_IgnoreParentGroups: 0
--- !u!225 &225797208131836146
CanvasGroup:
m_ObjectHideFlags: 1
......
......@@ -353,6 +353,48 @@ Prefab:
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: c7a417ca447984f77a4e358941e3abd0, type: 2}
m_IsPrefabAsset: 0
--- !u!1001 &775276060
Prefab:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 4340952726558564, guid: 7693d66024f3149329daa7d1c88af386, type: 2}
propertyPath: m_LocalPosition.x
value: 0.822
objectReference: {fileID: 0}
- target: {fileID: 4340952726558564, guid: 7693d66024f3149329daa7d1c88af386, type: 2}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4340952726558564, guid: 7693d66024f3149329daa7d1c88af386, type: 2}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4340952726558564, guid: 7693d66024f3149329daa7d1c88af386, type: 2}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4340952726558564, guid: 7693d66024f3149329daa7d1c88af386, type: 2}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4340952726558564, guid: 7693d66024f3149329daa7d1c88af386, type: 2}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4340952726558564, guid: 7693d66024f3149329daa7d1c88af386, type: 2}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4340952726558564, guid: 7693d66024f3149329daa7d1c88af386, type: 2}
propertyPath: m_RootOrder
value: 9
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 7693d66024f3149329daa7d1c88af386, type: 2}
m_IsPrefabAsset: 0
--- !u!1001 &1288087220
Prefab:
m_ObjectHideFlags: 0
......@@ -370,7 +412,7 @@ Prefab:
objectReference: {fileID: 0}
- target: {fileID: 4563397551571546, guid: d0a5118c394d04e14a671047cbace2e6, type: 2}
propertyPath: m_LocalPosition.z
value: 0
value: 0.937
objectReference: {fileID: 0}
- target: {fileID: 4563397551571546, guid: d0a5118c394d04e14a671047cbace2e6, type: 2}
propertyPath: m_LocalRotation.x
......@@ -392,6 +434,10 @@ Prefab:
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
- target: {fileID: 1397458913494654, guid: d0a5118c394d04e14a671047cbace2e6, type: 2}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: d0a5118c394d04e14a671047cbace2e6, type: 2}
m_IsPrefabAsset: 0
......@@ -434,6 +480,10 @@ Prefab:
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1345739324356944, guid: 926b00c52e6b04bfa94fff7b575a22ce, type: 2}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 926b00c52e6b04bfa94fff7b575a22ce, type: 2}
m_IsPrefabAsset: 0
......
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Cat : MonoBehaviour {
public Image image;
public AnimationCurve curve;
public GameObject anim;
private float alpha;
private float rotation;
private float positionX;
private float positionY;
private bool visible;
private void Start()
{
StartCoroutine(Fader());
}
IEnumerator Fader()
{
var canvasGroup = anim.GetComponent<CanvasGroup>();
canvasGroup.alpha = 0;
yield return new WaitForSeconds(Random.Range(5, 20));
var rectTransform = anim.GetComponent<RectTransform>();
while (true)
{
rotation = Random.Range(-50f, 50f);
positionX = Random.Range(-700f, 700f);
positionY = Random.Range(-450f, 450f);
anim.transform.rotation = Quaternion.Euler(0, 0, rotation);
rectTransform.anchoredPosition = new Vector2(positionX, positionY);
yield return canvasGroup.FadeIn(2);
yield return new WaitForSeconds(3);
yield return canvasGroup.FadeOut(2);
yield return new WaitForSeconds(Random.Range(20, 40));
}
}
}
fileFormatVersion: 2
guid: c643bb82963854dbe935ee2af5e82529
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment