박창현

고기 굽기 추가, 자르기 수정

1 +using System.Collections;
2 +using System.Collections.Generic;
3 +using UnityEngine;
4 +
5 +public class CanCook : MonoBehaviour
6 +{
7 +
8 + public bool canCook = false;
9 + GameObject firstCollidedObject;
10 +
11 + private void OnCollisionEnter(Collision collision)
12 + {
13 + if (!canCook && collision.transform.parent)
14 + {
15 + firstCollidedObject = collision.collider.transform.parent.gameObject;
16 + canCook = OnOven(collision.collider.transform.parent);
17 + }
18 + }
19 +
20 + bool OnOven(Transform parent)
21 + {
22 + bool isPlate = false;
23 + while (parent != null)
24 + {
25 + if (parent.GetComponent<HotPlate>())
26 + {
27 + HotPlate hotPlate = parent.GetComponent<HotPlate>();
28 + if (hotPlate.plates.name == firstCollidedObject.name && hotPlate.activePlateIndices)
29 + {
30 + isPlate = true;
31 + return isPlate;
32 + }
33 + }
34 + parent = parent.transform.parent;
35 + }
36 + return isPlate;
37 + }
38 +
39 + public bool GetCanCook()
40 + {
41 + return canCook;
42 + }
43 +}
1 +fileFormatVersion: 2
2 +guid: 52ec7f0ab225a47418752c85dca1875f
3 +MonoImporter:
4 + externalObjects: {}
5 + serializedVersion: 2
6 + defaultReferences: []
7 + executionOrder: 0
8 + icon: {instanceID: 0}
9 + userData:
10 + assetBundleName:
11 + assetBundleVariant:
1 +using System.Collections;
2 +using System.Collections.Generic;
3 +using UnityEngine;
4 +
5 +public class FireTrigger : MonoBehaviour
6 +{
7 + // Start is called before the first frame update
8 + void Start()
9 + {
10 +
11 + }
12 +
13 + // Update is called once per frame
14 + void Update()
15 + {
16 + bool cook = gameObject.transform.parent.GetComponent<CanCook>().canCook;
17 + if (cook == true)
18 + {
19 + gameObject.GetComponent<BoxCollider>().isTrigger = true;
20 + }
21 + else
22 + {
23 + gameObject.GetComponent<BoxCollider>().isTrigger = false;
24 + }
25 + }
26 +}
1 +fileFormatVersion: 2
2 +guid: fd8b5b1cfe23c084aacf384a10c4951b
3 +MonoImporter:
4 + externalObjects: {}
5 + serializedVersion: 2
6 + defaultReferences: []
7 + executionOrder: 0
8 + icon: {instanceID: 0}
9 + userData:
10 + assetBundleName:
11 + assetBundleVariant:
...@@ -4,8 +4,9 @@ ...@@ -4,8 +4,9 @@
4 Material: 4 Material:
5 serializedVersion: 6 5 serializedVersion: 6
6 m_ObjectHideFlags: 0 6 m_ObjectHideFlags: 0
7 - m_PrefabParentObject: {fileID: 0} 7 + m_CorrespondingSourceObject: {fileID: 0}
8 - m_PrefabInternal: {fileID: 0} 8 + m_PrefabInstance: {fileID: 0}
9 + m_PrefabAsset: {fileID: 0}
9 m_Name: BeefSlice 10 m_Name: BeefSlice
10 m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} 11 m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
11 m_ShaderKeywords: 12 m_ShaderKeywords:
...@@ -74,3 +75,4 @@ Material: ...@@ -74,3 +75,4 @@ Material:
74 m_Colors: 75 m_Colors:
75 - _Color: {r: 1, g: 1, b: 1, a: 1} 76 - _Color: {r: 1, g: 1, b: 1, a: 1}
76 - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} 77 - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
78 + m_BuildTextureStacks: []
......
1 +using System.Collections;
2 +using System.Collections.Generic;
3 +using UnityEngine;
4 +
5 +public class FoodOnFire : MonoBehaviour
6 +
7 +/* 익힌 고기와 탄 고기가 이 스크립트를 공유할 것이다. */
8 +{
9 + [SerializeField]
10 + int time; // 익히거나 타는데 걸리는 시간
11 + float currentTime; // 업데이트해 나갈 시간. time 에 도달시킬 것.
12 +
13 + private bool done; // 끝났으면 더 이상 불에 있어도 계산 무시할 수 있게끔
14 +
15 + [SerializeField]
16 + private Material go_Cooked_Material;
17 + private GameObject go_CookedItem_Prefab; // 익혀진 혹은 탄 고기 아이템 교체
18 +
19 +
20 + private void OnTriggerStay(Collider other)
21 + {
22 + if (other.transform.tag == "Fire" && !done)
23 + {
24 + currentTime += Time.deltaTime;
25 +
26 + Debug.Log(currentTime);
27 + if (currentTime > time)
28 + {
29 + done = true;
30 + gameObject.GetComponent<Renderer>().material = go_Cooked_Material;
31 + // Instantiate(go_CookedItem_Prefab, transform.position, Quaternion.Euler(transform.eulerAngles));
32 + // Destroy(gameObject); // 날고기인 자기 자신은 파괴
33 + }
34 + }
35 + }
36 +}
1 +fileFormatVersion: 2
2 +guid: 72ca348592e734541bf90973dd12e636
3 +MonoImporter:
4 + externalObjects: {}
5 + serializedVersion: 2
6 + defaultReferences: []
7 + executionOrder: 0
8 + icon: {instanceID: 0}
9 + userData:
10 + assetBundleName:
11 + assetBundleVariant:
1 +using System;
2 +using System.Collections;
3 +using System.Collections.Generic;
4 +using UnityEngine;
5 +
6 +public class HotPlate : MonoBehaviour
7 +{
8 +
9 + public GameObject plates; // this oven has 4 hot plates
10 + public bool activePlateIndices = false;
11 +
12 + public GameObject canHeatObjectsOnMe;
13 +
14 + private void Start()
15 + {
16 +
17 + }
18 +
19 + // Update is called once per frame
20 + void Update()
21 + {
22 + // check if user switchs on or off one of plates
23 + plates.transform.GetChild(0).gameObject.SetActive(true);
24 + activePlateIndices = true;
25 +
26 + if (canHeatObjectsOnMe)
27 + {
28 + if (canHeatObjectsOnMe.GetComponent<CanCook>())
29 + {
30 + canHeatObjectsOnMe.GetComponent<CanCook>().canCook = true;
31 + }
32 + }
33 + else
34 + {
35 + plates.transform.GetChild(0).gameObject.SetActive(false);
36 + activePlateIndices = false;
37 +
38 + if (canHeatObjectsOnMe)
39 + {
40 + if (canHeatObjectsOnMe.GetComponent<CanCook>())
41 + {
42 + canHeatObjectsOnMe.GetComponent<CanCook>().canCook = false;
43 + }
44 + }
45 + }
46 + }
47 +
48 + private void OnCollisionEnter(Collision collision)
49 + {
50 + if (collision.gameObject.GetComponent<CanCook>())
51 + {
52 + string name = collision.contacts[0].thisCollider.name;
53 + canHeatObjectsOnMe = collision.gameObject;
54 + canHeatObjectsOnMe.tag = "Fire";
55 + }
56 + }
57 +
58 + private void OnCollisionExit(Collision collision)
59 + {
60 + if (canHeatObjectsOnMe == collision.gameObject)
61 + {
62 + canHeatObjectsOnMe.gameObject.tag = "NotFire";
63 + canHeatObjectsOnMe = null;
64 + if (collision.gameObject.GetComponent<CanCook>())
65 + {
66 + collision.gameObject.GetComponent<CanCook>().canCook = false;
67 + }
68 + }
69 + }
70 +}
1 +fileFormatVersion: 2
2 +guid: 791ad303972dc42468b6f990a87a8600
3 +MonoImporter:
4 + externalObjects: {}
5 + serializedVersion: 2
6 + defaultReferences: []
7 + executionOrder: 0
8 + icon: {instanceID: 0}
9 + userData:
10 + assetBundleName:
11 + assetBundleVariant:
...@@ -2434,6 +2434,10 @@ PrefabInstance: ...@@ -2434,6 +2434,10 @@ PrefabInstance:
2434 propertyPath: m_Name 2434 propertyPath: m_Name
2435 value: pan_3 2435 value: pan_3
2436 objectReference: {fileID: 0} 2436 objectReference: {fileID: 0}
2437 + - target: {fileID: 100000, guid: eff0c32eda7392144af09bed48ee93c3, type: 3}
2438 + propertyPath: m_TagString
2439 + value: Normal
2440 + objectReference: {fileID: 0}
2437 - target: {fileID: 400000, guid: eff0c32eda7392144af09bed48ee93c3, type: 3} 2441 - target: {fileID: 400000, guid: eff0c32eda7392144af09bed48ee93c3, type: 3}
2438 propertyPath: m_RootOrder 2442 propertyPath: m_RootOrder
2439 value: 14 2443 value: 14
...@@ -9273,6 +9277,19 @@ GameObject: ...@@ -9273,6 +9277,19 @@ GameObject:
9273 type: 3} 9277 type: 3}
9274 m_PrefabInstance: {fileID: 420319605} 9278 m_PrefabInstance: {fileID: 420319605}
9275 m_PrefabAsset: {fileID: 0} 9279 m_PrefabAsset: {fileID: 0}
9280 +--- !u!114 &759042945
9281 +MonoBehaviour:
9282 + m_ObjectHideFlags: 0
9283 + m_CorrespondingSourceObject: {fileID: 0}
9284 + m_PrefabInstance: {fileID: 0}
9285 + m_PrefabAsset: {fileID: 0}
9286 + m_GameObject: {fileID: 759042944}
9287 + m_Enabled: 1
9288 + m_EditorHideFlags: 0
9289 + m_Script: {fileID: 11500000, guid: 52ec7f0ab225a47418752c85dca1875f, type: 3}
9290 + m_Name:
9291 + m_EditorClassIdentifier:
9292 + canCook: 0
9276 --- !u!4 &759042947 stripped 9293 --- !u!4 &759042947 stripped
9277 Transform: 9294 Transform:
9278 m_CorrespondingSourceObject: {fileID: 400000, guid: eff0c32eda7392144af09bed48ee93c3, 9295 m_CorrespondingSourceObject: {fileID: 400000, guid: eff0c32eda7392144af09bed48ee93c3,
...@@ -11449,6 +11466,117 @@ BoxCollider: ...@@ -11449,6 +11466,117 @@ BoxCollider:
11449 serializedVersion: 2 11466 serializedVersion: 2
11450 m_Size: {x: 0.16352117, y: 0.08066645, z: 0.16520268} 11467 m_Size: {x: 0.16352117, y: 0.08066645, z: 0.16520268}
11451 m_Center: {x: -0.0013483651, y: 0.036726415, z: -0.000104002655} 11468 m_Center: {x: -0.0013483651, y: 0.036726415, z: -0.000104002655}
11469 +--- !u!1 &1128256010
11470 +GameObject:
11471 + m_ObjectHideFlags: 0
11472 + m_CorrespondingSourceObject: {fileID: 0}
11473 + m_PrefabInstance: {fileID: 0}
11474 + m_PrefabAsset: {fileID: 0}
11475 + serializedVersion: 6
11476 + m_Component:
11477 + - component: {fileID: 1128256011}
11478 + - component: {fileID: 1128256014}
11479 + - component: {fileID: 1128256013}
11480 + - component: {fileID: 1128256012}
11481 + - component: {fileID: 1128256015}
11482 + m_Layer: 0
11483 + m_Name: Firepoint
11484 + m_TagString: Untagged
11485 + m_Icon: {fileID: 0}
11486 + m_NavMeshLayer: 0
11487 + m_StaticEditorFlags: 0
11488 + m_IsActive: 1
11489 +--- !u!4 &1128256011
11490 +Transform:
11491 + m_ObjectHideFlags: 0
11492 + m_CorrespondingSourceObject: {fileID: 0}
11493 + m_PrefabInstance: {fileID: 0}
11494 + m_PrefabAsset: {fileID: 0}
11495 + m_GameObject: {fileID: 1128256010}
11496 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
11497 + m_LocalPosition: {x: -0.1451, y: 0.5009, z: -0.067}
11498 + m_LocalScale: {x: 0.001, y: 0.01, z: 0.001}
11499 + m_Children: []
11500 + m_Father: {fileID: 1353977239}
11501 + m_RootOrder: 2
11502 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
11503 +--- !u!65 &1128256012
11504 +BoxCollider:
11505 + m_ObjectHideFlags: 0
11506 + m_CorrespondingSourceObject: {fileID: 0}
11507 + m_PrefabInstance: {fileID: 0}
11508 + m_PrefabAsset: {fileID: 0}
11509 + m_GameObject: {fileID: 1128256010}
11510 + m_Material: {fileID: 0}
11511 + m_IsTrigger: 0
11512 + m_Enabled: 1
11513 + serializedVersion: 2
11514 + m_Size: {x: 1, y: 0.001, z: 1}
11515 + m_Center: {x: -0.00012207031, y: -0.0000076293945, z: 0}
11516 +--- !u!23 &1128256013
11517 +MeshRenderer:
11518 + m_ObjectHideFlags: 0
11519 + m_CorrespondingSourceObject: {fileID: 0}
11520 + m_PrefabInstance: {fileID: 0}
11521 + m_PrefabAsset: {fileID: 0}
11522 + m_GameObject: {fileID: 1128256010}
11523 + m_Enabled: 0
11524 + m_CastShadows: 1
11525 + m_ReceiveShadows: 1
11526 + m_DynamicOccludee: 1
11527 + m_MotionVectors: 1
11528 + m_LightProbeUsage: 1
11529 + m_ReflectionProbeUsage: 1
11530 + m_RayTracingMode: 2
11531 + m_RayTraceProcedural: 0
11532 + m_RenderingLayerMask: 1
11533 + m_RendererPriority: 0
11534 + m_Materials:
11535 + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
11536 + m_StaticBatchInfo:
11537 + firstSubMesh: 0
11538 + subMeshCount: 0
11539 + m_StaticBatchRoot: {fileID: 0}
11540 + m_ProbeAnchor: {fileID: 0}
11541 + m_LightProbeVolumeOverride: {fileID: 0}
11542 + m_ScaleInLightmap: 1
11543 + m_ReceiveGI: 1
11544 + m_PreserveUVs: 0
11545 + m_IgnoreNormalsForChartDetection: 0
11546 + m_ImportantGI: 0
11547 + m_StitchLightmapSeams: 1
11548 + m_SelectedEditorRenderState: 3
11549 + m_MinimumChartSize: 4
11550 + m_AutoUVMaxDistance: 0.5
11551 + m_AutoUVMaxAngle: 89
11552 + m_LightmapParameters: {fileID: 0}
11553 + m_SortingLayerID: 0
11554 + m_SortingLayer: 0
11555 + m_SortingOrder: 0
11556 + m_AdditionalVertexStreams: {fileID: 0}
11557 +--- !u!33 &1128256014
11558 +MeshFilter:
11559 + m_ObjectHideFlags: 0
11560 + m_CorrespondingSourceObject: {fileID: 0}
11561 + m_PrefabInstance: {fileID: 0}
11562 + m_PrefabAsset: {fileID: 0}
11563 + m_GameObject: {fileID: 1128256010}
11564 + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
11565 +--- !u!114 &1128256015
11566 +MonoBehaviour:
11567 + m_ObjectHideFlags: 0
11568 + m_CorrespondingSourceObject: {fileID: 0}
11569 + m_PrefabInstance: {fileID: 0}
11570 + m_PrefabAsset: {fileID: 0}
11571 + m_GameObject: {fileID: 1128256010}
11572 + m_Enabled: 1
11573 + m_EditorHideFlags: 0
11574 + m_Script: {fileID: 11500000, guid: 791ad303972dc42468b6f990a87a8600, type: 3}
11575 + m_Name:
11576 + m_EditorClassIdentifier:
11577 + plates: {fileID: 582954578}
11578 + activePlateIndices: 0
11579 + canHeatObjectsOnMe: {fileID: 0}
11452 --- !u!1 &1156111311 stripped 11580 --- !u!1 &1156111311 stripped
11453 GameObject: 11581 GameObject:
11454 m_CorrespondingSourceObject: {fileID: 1600021791046094, guid: 97040231d13449049ae427c70f780724, 11582 m_CorrespondingSourceObject: {fileID: 1600021791046094, guid: 97040231d13449049ae427c70f780724,
...@@ -12425,6 +12553,7 @@ Transform: ...@@ -12425,6 +12553,7 @@ Transform:
12425 m_Children: 12553 m_Children:
12426 - {fileID: 561849840} 12554 - {fileID: 561849840}
12427 - {fileID: 1371341559} 12555 - {fileID: 1371341559}
12556 + - {fileID: 1128256011}
12428 m_Father: {fileID: 634464266} 12557 m_Father: {fileID: 634464266}
12429 m_RootOrder: 5 12558 m_RootOrder: 5
12430 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 12559 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
...@@ -13057,6 +13186,7 @@ GameObject: ...@@ -13057,6 +13186,7 @@ GameObject:
13057 - component: {fileID: 1469365274} 13186 - component: {fileID: 1469365274}
13058 - component: {fileID: 1469365273} 13187 - component: {fileID: 1469365273}
13059 - component: {fileID: 1469365270} 13188 - component: {fileID: 1469365270}
13189 + - component: {fileID: 1469365275}
13060 m_Layer: 11 13190 m_Layer: 11
13061 m_Name: meat 13191 m_Name: meat
13062 m_TagString: Untagged 13192 m_TagString: Untagged
...@@ -13135,7 +13265,7 @@ Transform: ...@@ -13135,7 +13265,7 @@ Transform:
13135 m_PrefabAsset: {fileID: 0} 13265 m_PrefabAsset: {fileID: 0}
13136 m_GameObject: {fileID: 1469365268} 13266 m_GameObject: {fileID: 1469365268}
13137 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 13267 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
13138 - m_LocalPosition: {x: -0.32553542, y: 1.103, z: 3.197} 13268 + m_LocalPosition: {x: -0.778, y: 1.233, z: 3.385}
13139 m_LocalScale: {x: 0.02, y: 0.02, z: 0.02} 13269 m_LocalScale: {x: 0.02, y: 0.02, z: 0.02}
13140 m_Children: [] 13270 m_Children: []
13141 m_Father: {fileID: 0} 13271 m_Father: {fileID: 0}
...@@ -13174,6 +13304,20 @@ MonoBehaviour: ...@@ -13174,6 +13304,20 @@ MonoBehaviour:
13174 m_snapOrientation: 0 13304 m_snapOrientation: 0
13175 m_snapOffset: {fileID: 0} 13305 m_snapOffset: {fileID: 0}
13176 m_grabPoints: [] 13306 m_grabPoints: []
13307 +--- !u!114 &1469365275
13308 +MonoBehaviour:
13309 + m_ObjectHideFlags: 0
13310 + m_CorrespondingSourceObject: {fileID: 0}
13311 + m_PrefabInstance: {fileID: 0}
13312 + m_PrefabAsset: {fileID: 0}
13313 + m_GameObject: {fileID: 1469365268}
13314 + m_Enabled: 1
13315 + m_EditorHideFlags: 0
13316 + m_Script: {fileID: 11500000, guid: 72ca348592e734541bf90973dd12e636, type: 3}
13317 + m_Name:
13318 + m_EditorClassIdentifier:
13319 + time: 10
13320 + go_Cooked_Material: {fileID: 2100000, guid: 77fb9a986471c3b43945d52e77b9409a, type: 2}
13177 --- !u!4 &1469698266 stripped 13321 --- !u!4 &1469698266 stripped
13178 Transform: 13322 Transform:
13179 m_CorrespondingSourceObject: {fileID: 6909306594215196371, guid: 51ed19930404371458e8d3152edbad78, 13323 m_CorrespondingSourceObject: {fileID: 6909306594215196371, guid: 51ed19930404371458e8d3152edbad78,
...@@ -13186,6 +13330,114 @@ Transform: ...@@ -13186,6 +13330,114 @@ Transform:
13186 type: 3} 13330 type: 3}
13187 m_PrefabInstance: {fileID: 1743977982} 13331 m_PrefabInstance: {fileID: 1743977982}
13188 m_PrefabAsset: {fileID: 0} 13332 m_PrefabAsset: {fileID: 0}
13333 +--- !u!1 &1518775841
13334 +GameObject:
13335 + m_ObjectHideFlags: 0
13336 + m_CorrespondingSourceObject: {fileID: 0}
13337 + m_PrefabInstance: {fileID: 0}
13338 + m_PrefabAsset: {fileID: 0}
13339 + serializedVersion: 6
13340 + m_Component:
13341 + - component: {fileID: 1518775842}
13342 + - component: {fileID: 1518775845}
13343 + - component: {fileID: 1518775844}
13344 + - component: {fileID: 1518775843}
13345 + - component: {fileID: 1518775846}
13346 + m_Layer: 0
13347 + m_Name: heatpoint
13348 + m_TagString: Fire
13349 + m_Icon: {fileID: 0}
13350 + m_NavMeshLayer: 0
13351 + m_StaticEditorFlags: 0
13352 + m_IsActive: 1
13353 +--- !u!4 &1518775842
13354 +Transform:
13355 + m_ObjectHideFlags: 0
13356 + m_CorrespondingSourceObject: {fileID: 0}
13357 + m_PrefabInstance: {fileID: 0}
13358 + m_PrefabAsset: {fileID: 0}
13359 + m_GameObject: {fileID: 1518775841}
13360 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
13361 + m_LocalPosition: {x: 0, y: 0.03, z: 0}
13362 + m_LocalScale: {x: 0.03, y: 1, z: 0.03}
13363 + m_Children: []
13364 + m_Father: {fileID: 759042947}
13365 + m_RootOrder: 9
13366 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
13367 +--- !u!65 &1518775843
13368 +BoxCollider:
13369 + m_ObjectHideFlags: 0
13370 + m_CorrespondingSourceObject: {fileID: 0}
13371 + m_PrefabInstance: {fileID: 0}
13372 + m_PrefabAsset: {fileID: 0}
13373 + m_GameObject: {fileID: 1518775841}
13374 + m_Material: {fileID: 0}
13375 + m_IsTrigger: 0
13376 + m_Enabled: 1
13377 + serializedVersion: 2
13378 + m_Size: {x: 10, y: 0.01, z: 10}
13379 + m_Center: {x: 0, y: 0, z: 0}
13380 +--- !u!23 &1518775844
13381 +MeshRenderer:
13382 + m_ObjectHideFlags: 0
13383 + m_CorrespondingSourceObject: {fileID: 0}
13384 + m_PrefabInstance: {fileID: 0}
13385 + m_PrefabAsset: {fileID: 0}
13386 + m_GameObject: {fileID: 1518775841}
13387 + m_Enabled: 0
13388 + m_CastShadows: 1
13389 + m_ReceiveShadows: 1
13390 + m_DynamicOccludee: 1
13391 + m_MotionVectors: 1
13392 + m_LightProbeUsage: 1
13393 + m_ReflectionProbeUsage: 1
13394 + m_RayTracingMode: 2
13395 + m_RayTraceProcedural: 0
13396 + m_RenderingLayerMask: 1
13397 + m_RendererPriority: 0
13398 + m_Materials:
13399 + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
13400 + m_StaticBatchInfo:
13401 + firstSubMesh: 0
13402 + subMeshCount: 0
13403 + m_StaticBatchRoot: {fileID: 0}
13404 + m_ProbeAnchor: {fileID: 0}
13405 + m_LightProbeVolumeOverride: {fileID: 0}
13406 + m_ScaleInLightmap: 1
13407 + m_ReceiveGI: 1
13408 + m_PreserveUVs: 0
13409 + m_IgnoreNormalsForChartDetection: 0
13410 + m_ImportantGI: 0
13411 + m_StitchLightmapSeams: 1
13412 + m_SelectedEditorRenderState: 3
13413 + m_MinimumChartSize: 4
13414 + m_AutoUVMaxDistance: 0.5
13415 + m_AutoUVMaxAngle: 89
13416 + m_LightmapParameters: {fileID: 0}
13417 + m_SortingLayerID: 0
13418 + m_SortingLayer: 0
13419 + m_SortingOrder: 0
13420 + m_AdditionalVertexStreams: {fileID: 0}
13421 +--- !u!33 &1518775845
13422 +MeshFilter:
13423 + m_ObjectHideFlags: 0
13424 + m_CorrespondingSourceObject: {fileID: 0}
13425 + m_PrefabInstance: {fileID: 0}
13426 + m_PrefabAsset: {fileID: 0}
13427 + m_GameObject: {fileID: 1518775841}
13428 + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
13429 +--- !u!114 &1518775846
13430 +MonoBehaviour:
13431 + m_ObjectHideFlags: 0
13432 + m_CorrespondingSourceObject: {fileID: 0}
13433 + m_PrefabInstance: {fileID: 0}
13434 + m_PrefabAsset: {fileID: 0}
13435 + m_GameObject: {fileID: 1518775841}
13436 + m_Enabled: 1
13437 + m_EditorHideFlags: 0
13438 + m_Script: {fileID: 11500000, guid: fd8b5b1cfe23c084aacf384a10c4951b, type: 3}
13439 + m_Name:
13440 + m_EditorClassIdentifier:
13189 --- !u!1001 &1520178988 13441 --- !u!1001 &1520178988
13190 PrefabInstance: 13442 PrefabInstance:
13191 m_ObjectHideFlags: 0 13443 m_ObjectHideFlags: 0
...@@ -13301,7 +13553,7 @@ MonoBehaviour: ...@@ -13301,7 +13553,7 @@ MonoBehaviour:
13301 m_Script: {fileID: 11500000, guid: 61de3cb17acdb354d84681ba8d55116e, type: 3} 13553 m_Script: {fileID: 11500000, guid: 61de3cb17acdb354d84681ba8d55116e, type: 3}
13302 m_Name: 13554 m_Name:
13303 m_EditorClassIdentifier: 13555 m_EditorClassIdentifier:
13304 - materialAfterSlice: {fileID: 0} 13556 + materialAfterSlice: {fileID: 2100000, guid: 77fb9a986471c3b43945d52e77b9409a, type: 2}
13305 sliceMask: 13557 sliceMask:
13306 serializedVersion: 2 13558 serializedVersion: 2
13307 m_Bits: 2048 13559 m_Bits: 2048
...@@ -15400,7 +15652,7 @@ PrefabInstance: ...@@ -15400,7 +15652,7 @@ PrefabInstance:
15400 objectReference: {fileID: 0} 15652 objectReference: {fileID: 0}
15401 - target: {fileID: 400000, guid: 0a1a51a05598a7e45a05572c30fefb13, type: 3} 15653 - target: {fileID: 400000, guid: 0a1a51a05598a7e45a05572c30fefb13, type: 3}
15402 propertyPath: m_LocalPosition.x 15654 propertyPath: m_LocalPosition.x
15403 - value: 0.713 15655 + value: 1.351
15404 objectReference: {fileID: 0} 15656 objectReference: {fileID: 0}
15405 - target: {fileID: 400000, guid: 0a1a51a05598a7e45a05572c30fefb13, type: 3} 15657 - target: {fileID: 400000, guid: 0a1a51a05598a7e45a05572c30fefb13, type: 3}
15406 propertyPath: m_LocalPosition.y 15658 propertyPath: m_LocalPosition.y
......
1 +%YAML 1.1
2 +%TAG !u! tag:unity3d.com,2011:
3 +--- !u!21 &2100000
4 +Material:
5 + serializedVersion: 6
6 + m_ObjectHideFlags: 0
7 + m_CorrespondingSourceObject: {fileID: 0}
8 + m_PrefabInstance: {fileID: 0}
9 + m_PrefabAsset: {fileID: 0}
10 + m_Name: beefCooked
11 + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
12 + m_ShaderKeywords:
13 + m_LightmapFlags: 4
14 + m_EnableInstancingVariants: 0
15 + m_DoubleSidedGI: 0
16 + m_CustomRenderQueue: -1
17 + stringTagMap: {}
18 + disabledShaderPasses: []
19 + m_SavedProperties:
20 + serializedVersion: 3
21 + m_TexEnvs:
22 + - _BumpMap:
23 + m_Texture: {fileID: 0}
24 + m_Scale: {x: 1, y: 1}
25 + m_Offset: {x: 0, y: 0}
26 + - _DetailAlbedoMap:
27 + m_Texture: {fileID: 0}
28 + m_Scale: {x: 1, y: 1}
29 + m_Offset: {x: 0, y: 0}
30 + - _DetailMask:
31 + m_Texture: {fileID: 0}
32 + m_Scale: {x: 1, y: 1}
33 + m_Offset: {x: 0, y: 0}
34 + - _DetailNormalMap:
35 + m_Texture: {fileID: 0}
36 + m_Scale: {x: 1, y: 1}
37 + m_Offset: {x: 0, y: 0}
38 + - _EmissionMap:
39 + m_Texture: {fileID: 0}
40 + m_Scale: {x: 1, y: 1}
41 + m_Offset: {x: 0, y: 0}
42 + - _MainTex:
43 + m_Texture: {fileID: 2800000, guid: 0d678ff2e94358c41b7904fc1face92b, type: 3}
44 + m_Scale: {x: 1, y: 1}
45 + m_Offset: {x: 0, y: 0}
46 + - _MetallicGlossMap:
47 + m_Texture: {fileID: 0}
48 + m_Scale: {x: 1, y: 1}
49 + m_Offset: {x: 0, y: 0}
50 + - _OcclusionMap:
51 + m_Texture: {fileID: 0}
52 + m_Scale: {x: 1, y: 1}
53 + m_Offset: {x: 0, y: 0}
54 + - _ParallaxMap:
55 + m_Texture: {fileID: 0}
56 + m_Scale: {x: 1, y: 1}
57 + m_Offset: {x: 0, y: 0}
58 + m_Floats:
59 + - _BumpScale: 1
60 + - _Cutoff: 0.5
61 + - _DetailNormalMapScale: 1
62 + - _DstBlend: 0
63 + - _GlossMapScale: 1
64 + - _Glossiness: 0.5
65 + - _GlossyReflections: 1
66 + - _Metallic: 0
67 + - _Mode: 0
68 + - _OcclusionStrength: 1
69 + - _Parallax: 0.02
70 + - _SmoothnessTextureChannel: 0
71 + - _SpecularHighlights: 1
72 + - _SrcBlend: 1
73 + - _UVSec: 0
74 + - _ZWrite: 1
75 + m_Colors:
76 + - _Color: {r: 0.735849, g: 0.5884612, b: 0.19784619, a: 1}
77 + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
78 + m_BuildTextureStacks: []
1 +fileFormatVersion: 2
2 +guid: 77fb9a986471c3b43945d52e77b9409a
3 +NativeFormatImporter:
4 + externalObjects: {}
5 + mainObjectFileID: 0
6 + userData:
7 + assetBundleName:
8 + assetBundleVariant:
1 +fileFormatVersion: 2
2 +guid: 0d678ff2e94358c41b7904fc1face92b
3 +TextureImporter:
4 + internalIDToNameTable: []
5 + externalObjects: {}
6 + serializedVersion: 11
7 + mipmaps:
8 + mipMapMode: 0
9 + enableMipMap: 1
10 + sRGBTexture: 1
11 + linearTexture: 0
12 + fadeOut: 0
13 + borderMipMap: 0
14 + mipMapsPreserveCoverage: 0
15 + alphaTestReferenceValue: 0.5
16 + mipMapFadeDistanceStart: 1
17 + mipMapFadeDistanceEnd: 3
18 + bumpmap:
19 + convertToNormalMap: 0
20 + externalNormalMap: 0
21 + heightScale: 0.25
22 + normalMapFilter: 0
23 + isReadable: 0
24 + streamingMipmaps: 0
25 + streamingMipmapsPriority: 0
26 + vTOnly: 0
27 + grayScaleToAlpha: 0
28 + generateCubemap: 6
29 + cubemapConvolution: 0
30 + seamlessCubemap: 0
31 + textureFormat: 1
32 + maxTextureSize: 2048
33 + textureSettings:
34 + serializedVersion: 2
35 + filterMode: 1
36 + aniso: 1
37 + mipBias: 0
38 + wrapU: 0
39 + wrapV: 0
40 + wrapW: 0
41 + nPOTScale: 1
42 + lightmap: 0
43 + compressionQuality: 50
44 + spriteMode: 0
45 + spriteExtrude: 1
46 + spriteMeshType: 1
47 + alignment: 0
48 + spritePivot: {x: 0.5, y: 0.5}
49 + spritePixelsToUnits: 100
50 + spriteBorder: {x: 0, y: 0, z: 0, w: 0}
51 + spriteGenerateFallbackPhysicsShape: 1
52 + alphaUsage: 1
53 + alphaIsTransparency: 0
54 + spriteTessellationDetail: -1
55 + textureType: 0
56 + textureShape: 1
57 + singleChannelComponent: 0
58 + flipbookRows: 1
59 + flipbookColumns: 1
60 + maxTextureSizeSet: 0
61 + compressionQualitySet: 0
62 + textureFormatSet: 0
63 + ignorePngGamma: 0
64 + applyGammaDecoding: 0
65 + platformSettings:
66 + - serializedVersion: 3
67 + buildTarget: DefaultTexturePlatform
68 + maxTextureSize: 2048
69 + resizeAlgorithm: 0
70 + textureFormat: -1
71 + textureCompression: 1
72 + compressionQuality: 50
73 + crunchedCompression: 0
74 + allowsAlphaSplitting: 0
75 + overridden: 0
76 + androidETC2FallbackOverride: 0
77 + forceMaximumCompressionQuality_BC6H_BC7: 0
78 + spriteSheet:
79 + serializedVersion: 2
80 + sprites: []
81 + outline: []
82 + physicsShape: []
83 + bones: []
84 + spriteID:
85 + internalID: 0
86 + vertices: []
87 + indices:
88 + edges: []
89 + weights: []
90 + secondaryTextures: []
91 + spritePackingTag:
92 + pSDRemoveMatte: 0
93 + pSDShowRemoveMatteOption: 0
94 + userData:
95 + assetBundleName:
96 + assetBundleVariant:
...@@ -5,6 +5,9 @@ TagManager: ...@@ -5,6 +5,9 @@ TagManager:
5 serializedVersion: 2 5 serializedVersion: 2
6 tags: 6 tags:
7 - Shootable 7 - Shootable
8 + - Fire
9 + - NotFire
10 + - Normal
8 layers: 11 layers:
9 - Default 12 - Default
10 - TransparentFX 13 - TransparentFX
......