Commit e962a84e authored by 18신대성's avatar 18신대성 Committed by 15박보승

거울 깨지면 4초뒤부터 서서히 사라지게 만듬

parent d4320995
fileFormatVersion: 2
guid: 62107c1ac12b4914384f71d2e3ddfbe0
ModelImporter:
serializedVersion: 26
internalIDToNameTable: []
externalObjects:
- first:
type: UnityEngine:Material
assembly: UnityEngine.CoreModule
name: Mirror
second: {fileID: 2100000, guid: d8c28898e746cd84d8503fbd26995a55, type: 2}
- first:
type: UnityEngine:Material
assembly: UnityEngine.CoreModule
name: Wall
second: {fileID: 2100000, guid: 36f9d35b500106b42b6a47c516bf7b38, type: 2}
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 0.5
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
copyAvatar: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 0.5
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 0
humanoidOversampling: 1
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
......@@ -128,6 +128,8 @@ MonoBehaviour:
mapPos: {x: 0, y: 0}
len: 1
type: 2
scatteredMirror: {fileID: 5067960725721402673, guid: 05802e44cda3ff549a5ed7f4291ea9b8,
type: 3}
--- !u!1001 &243436096608247296
PrefabInstance:
m_ObjectHideFlags: 0
......
This diff is collapsed.
fileFormatVersion: 2
guid: 05802e44cda3ff549a5ed7f4291ea9b8
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -5,8 +5,12 @@ using UnityEngine.AI;
public class Mirror : Wall, IBulletInteractor, IBreakable
{
[Space(15)]
public GameObject scatteredMirror;
public void Break()
{
Instantiate(scatteredMirror, transform.position, transform.rotation);
MapManager.inst.currentMap.RemoveWall(this.mapPos);
}
......@@ -279,7 +283,7 @@ public class Mirror : Wall, IBulletInteractor, IBreakable
}
}
}
MapManager.inst.currentMap.RemoveWall(mapPos);
Break();
}
/// <summary>
......
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ScatteredMirror : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
StartCoroutine(Smaller());
}
IEnumerator Smaller()
{
yield return new WaitForSeconds(4f);
for (int i = 100; i > 0; i--)
{
Vector3 scale = new Vector3(i,i,i);
for (int j = 0; j < 100; j++) transform.GetChild(j).transform.localScale = scale;
yield return new WaitForSeconds(0.03f);
}
Destroy(gameObject);
}
}
fileFormatVersion: 2
guid: 4701bdb160272c740837a57735676ebb
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Markdown is supported
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