Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
man-in-the-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MIM
man-in-the-mirror
Commits
e962a84e
Commit
e962a84e
authored
5 years ago
by
18신대성
Committed by
15박보승
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
거울 깨지면 4초뒤부터 서서히 사라지게 만듬
parent
d4320995
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11294 additions
and
1 deletion
+11294
-1
mirror_scattered.fbx
Assets/Models/mirror_scattered.fbx
+0
-0
mirror_scattered.fbx.meta
Assets/Models/mirror_scattered.fbx.meta
+105
-0
mirror.prefab
Assets/Prefabs/MapObjects/mirror.prefab
+2
-0
mirror_scattered.prefab
Assets/Prefabs/MapObjects/mirror_scattered.prefab
+11140
-0
mirror_scattered.prefab.meta
Assets/Prefabs/MapObjects/mirror_scattered.prefab.meta
+7
-0
Mirror.cs
Assets/Scripts/Map/Mirror.cs
+5
-1
ScatteredMirror.cs
Assets/Scripts/Map/ScatteredMirror.cs
+24
-0
ScatteredMirror.cs.meta
Assets/Scripts/Map/ScatteredMirror.cs.meta
+11
-0
No files found.
Assets/Models/mirror_scattered.fbx
0 → 100644
View file @
e962a84e
File added
This diff is collapsed.
Click to expand it.
Assets/Models/mirror_scattered.fbx.meta
0 → 100644
View file @
e962a84e
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:
This diff is collapsed.
Click to expand it.
Assets/Prefabs/MapObjects/mirror.prefab
View file @
e962a84e
...
@@ -128,6 +128,8 @@ MonoBehaviour:
...
@@ -128,6 +128,8 @@ MonoBehaviour:
mapPos
:
{
x
:
0
,
y
:
0
}
mapPos
:
{
x
:
0
,
y
:
0
}
len
:
1
len
:
1
type
:
2
type
:
2
scatteredMirror
:
{
fileID
:
5067960725721402673
,
guid
:
05802e44cda3ff549a5ed7f4291ea9b8
,
type
:
3
}
---
!u!1001
&243436096608247296
---
!u!1001
&243436096608247296
PrefabInstance
:
PrefabInstance
:
m_ObjectHideFlags
:
0
m_ObjectHideFlags
:
0
...
...
This diff is collapsed.
Click to expand it.
Assets/Prefabs/MapObjects/mirror_scattered.prefab
0 → 100644
View file @
e962a84e
This diff is collapsed.
Click to expand it.
Assets/Prefabs/MapObjects/mirror_scattered.prefab.meta
0 → 100644
View file @
e962a84e
fileFormatVersion: 2
guid: 05802e44cda3ff549a5ed7f4291ea9b8
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
Click to expand it.
Assets/Scripts/Map/Mirror.cs
View file @
e962a84e
...
@@ -5,8 +5,12 @@ using UnityEngine.AI;
...
@@ -5,8 +5,12 @@ using UnityEngine.AI;
public
class
Mirror
:
Wall
,
IBulletInteractor
,
IBreakable
public
class
Mirror
:
Wall
,
IBulletInteractor
,
IBreakable
{
{
[
Space
(
15
)]
public
GameObject
scatteredMirror
;
public
void
Break
()
public
void
Break
()
{
{
Instantiate
(
scatteredMirror
,
transform
.
position
,
transform
.
rotation
);
MapManager
.
inst
.
currentMap
.
RemoveWall
(
this
.
mapPos
);
MapManager
.
inst
.
currentMap
.
RemoveWall
(
this
.
mapPos
);
}
}
...
@@ -279,7 +283,7 @@ public class Mirror : Wall, IBulletInteractor, IBreakable
...
@@ -279,7 +283,7 @@ public class Mirror : Wall, IBulletInteractor, IBreakable
}
}
}
}
}
}
MapManager
.
inst
.
currentMap
.
RemoveWall
(
mapPos
);
Break
(
);
}
}
/// <summary>
/// <summary>
...
...
This diff is collapsed.
Click to expand it.
Assets/Scripts/Map/ScatteredMirror.cs
0 → 100644
View file @
e962a84e
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
);
}
}
This diff is collapsed.
Click to expand it.
Assets/Scripts/Map/ScatteredMirror.cs.meta
0 → 100644
View file @
e962a84e
fileFormatVersion: 2
guid: 4701bdb160272c740837a57735676ebb
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment