Commit 6314ab28 authored by Pinguin's avatar Pinguin
Browse files
parents cd4bea01 97b10961
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class TriggerZone : MonoBehaviour
{
......@@ -12,6 +13,7 @@ public class TriggerZone : MonoBehaviour
bool inZone;
public bool set2D;
public bool interactable;
public bool loadLevel;
public List<GameObject> activateOnTouch = new List<GameObject>();
public List<GameObject> deActivateOnTouch = new List<GameObject>();
public List<GameObject> activateOnInteract = new List<GameObject>();
......@@ -21,6 +23,7 @@ public class TriggerZone : MonoBehaviour
foreach (GameObject go in activateOnTouch) go.SetActive(true);
foreach (GameObject go in deActivateOnTouch) go.SetActive(false);
if (set2D) InputMode.SetMode(InputMode.Mode.TWOD);
if (loadLevel) ;
}
private void OnTriggerExit(Collider other)
{
......
......@@ -384,6 +384,7 @@ GameObject:
m_Component:
- component: {fileID: 660660450}
- component: {fileID: 660660451}
- component: {fileID: 8631028083224885281}
m_Layer: 0
m_Name: GameObject
m_TagString: Untagged
......@@ -435,6 +436,102 @@ PlayableDirector:
- 3abbadf5a445e6a4ca4c2bcedcf609d0: {fileID: 344477373}
- 27a38eb2d4483944d89481f3e0af3685: {fileID: 3278058156823942896}
- a84cc247647f30d4ea6f52400d03e55e: {fileID: 3278058156823942896}
--- !u!82 &8631028083224885281
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 660660449}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 8300000, guid: da8cfb9c005f59748b9848babc485839, type: 3}
m_PlayOnAwake: 1
m_Volume: 1
m_Pitch: 1
Loop: 0
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!1 &679007962
GameObject:
m_ObjectHideFlags: 0
......@@ -799,6 +896,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
set2D: 0
interactable: 1
loadLevel: 0
activateOnTouch:
- {fileID: 679007962}
deActivateOnTouch: []
......@@ -1547,6 +1645,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
set2D: 1
interactable: 0
loadLevel: 0
activateOnTouch:
- {fileID: 743522549}
deActivateOnTouch:
......@@ -1582,9 +1681,127 @@ Transform:
m_Children:
- {fileID: 952689615}
- {fileID: 1793450436}
- {fileID: 5660478055185190975}
m_Father: {fileID: 5373329996097268796}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &237592841298102649
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5660478055185190975}
- component: {fileID: 1824487258790631212}
- component: {fileID: 8302271701854571153}
- component: {fileID: 3971477527340264572}
- component: {fileID: 4443184309150653680}
m_Layer: 0
m_Name: Transition2
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &5660478055185190975
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 237592841298102649}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -363.46, y: 10.61, z: 42.491}
m_LocalScale: {x: 2.766799, y: 8.8777485, z: 11.3815365}
m_Children: []
m_Father: {fileID: 1939870948}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &1824487258790631212
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 237592841298102649}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!23 &8302271701854571153
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 237592841298102649}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 9224fb0e06a768e49a8b6ed7e8205583, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!65 &3971477527340264572
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 237592841298102649}
m_Material: {fileID: 0}
m_IsTrigger: 1
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 1, y: 1, z: 1}
m_Center: {x: 0, y: 0, z: 0}
--- !u!114 &4443184309150653680
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 237592841298102649}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 534e71cc860b67a489088ae050156849, type: 3}
m_Name:
m_EditorClassIdentifier:
set2D: 1
interactable: 0
loadLevel: 0
activateOnTouch:
- {fileID: 0}
deActivateOnTouch:
- {fileID: 3278058158013368834}
activateOnInteract:
- {fileID: 0}
--- !u!1 &2705770588901096884
GameObject:
m_ObjectHideFlags: 0
......@@ -2201,8 +2418,8 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3278058156931788809}
m_LocalRotation: {x: -0.000000067670015, y: -0.65355814, z: -0.00000005843265, w: 0.7568763}
m_LocalPosition: {x: -65.11645, y: 16.789999, z: 150.2617}
m_LocalRotation: {x: 0.15090069, y: -2.6917796e-10, z: -1.7051713e-10, w: 0.98854893}
m_LocalPosition: {x: 51.303703, y: 56.270943, z: 19.923843}
m_LocalScale: {x: 2, y: 2, z: 2}
m_Children:
- {fileID: 3278058157821157975}
......
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