Merge branch 'master' of https://git.fslab.de/mwagne2s/forellenforderung3
This commit is contained in:
commit
f3b9d173fb
@ -12,6 +12,7 @@ GameObject:
|
|||||||
- component: {fileID: 5008637316406135653}
|
- component: {fileID: 5008637316406135653}
|
||||||
- component: {fileID: 5008637316406135659}
|
- component: {fileID: 5008637316406135659}
|
||||||
- component: {fileID: 5008637316406135658}
|
- component: {fileID: 5008637316406135658}
|
||||||
|
- component: {fileID: 8370241272374560545}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: AudioController
|
m_Name: AudioController
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@ -178,3 +179,11 @@ AudioLowPassFilter:
|
|||||||
m_PreInfinity: 2
|
m_PreInfinity: 2
|
||||||
m_PostInfinity: 2
|
m_PostInfinity: 2
|
||||||
m_RotationOrder: 4
|
m_RotationOrder: 4
|
||||||
|
--- !u!81 &8370241272374560545
|
||||||
|
AudioListener:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5008637316406135655}
|
||||||
|
m_Enabled: 1
|
||||||
|
83
Assets/AssetsFORELLE/Prefabs/FloatingPlatform(N) Variant 1.prefab
generated
Normal file
83
Assets/AssetsFORELLE/Prefabs/FloatingPlatform(N) Variant 1.prefab
generated
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1001 &6252729175500780014
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 0}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: 3128876235421336206, guid: 525621658d61b09439b07a6c216a3d3a, type: 3}
|
||||||
|
propertyPath: m_SpriteTilingProperty.drawMode
|
||||||
|
value: 2
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3128876235421336206, guid: 525621658d61b09439b07a6c216a3d3a, type: 3}
|
||||||
|
propertyPath: m_SpriteTilingProperty.oldSize.x
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3128876235421336206, guid: 525621658d61b09439b07a6c216a3d3a, type: 3}
|
||||||
|
propertyPath: m_SpriteTilingProperty.oldSize.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 4706343723101285080, guid: 525621658d61b09439b07a6c216a3d3a, type: 3}
|
||||||
|
propertyPath: m_Sprite
|
||||||
|
value:
|
||||||
|
objectReference: {fileID: 21300000, guid: 0cf9ee8ccc024624f943995d05fe41e2, type: 3}
|
||||||
|
- target: {fileID: 5311324458996372741, guid: 525621658d61b09439b07a6c216a3d3a, type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5311324458996372741, guid: 525621658d61b09439b07a6c216a3d3a, type: 3}
|
||||||
|
propertyPath: m_LocalScale.x
|
||||||
|
value: 0.99999994
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5311324458996372741, guid: 525621658d61b09439b07a6c216a3d3a, type: 3}
|
||||||
|
propertyPath: m_LocalScale.y
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5311324458996372741, guid: 525621658d61b09439b07a6c216a3d3a, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 41.219112
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5311324458996372741, guid: 525621658d61b09439b07a6c216a3d3a, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: -4.400285
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5311324458996372741, guid: 525621658d61b09439b07a6c216a3d3a, type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5311324458996372741, guid: 525621658d61b09439b07a6c216a3d3a, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5311324458996372741, guid: 525621658d61b09439b07a6c216a3d3a, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5311324458996372741, guid: 525621658d61b09439b07a6c216a3d3a, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5311324458996372741, guid: 525621658d61b09439b07a6c216a3d3a, type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5311324458996372741, guid: 525621658d61b09439b07a6c216a3d3a, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5311324458996372741, guid: 525621658d61b09439b07a6c216a3d3a, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 5311324458996372741, guid: 525621658d61b09439b07a6c216a3d3a, type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 6570034849947570412, guid: 525621658d61b09439b07a6c216a3d3a, type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: FloatingPlatform(N) Variant 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: 525621658d61b09439b07a6c216a3d3a, type: 3}
|
7
Assets/AssetsFORELLE/Prefabs/FloatingPlatform(N) Variant 1.prefab.meta
generated
Normal file
7
Assets/AssetsFORELLE/Prefabs/FloatingPlatform(N) Variant 1.prefab.meta
generated
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5f238cd0992249a45a0e9c8e6266795e
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
43
Assets/AssetsFORELLE/Prefabs/Frank.prefab
generated
43
Assets/AssetsFORELLE/Prefabs/Frank.prefab
generated
@ -16,13 +16,10 @@ GameObject:
|
|||||||
- component: {fileID: 2410396854066836737}
|
- component: {fileID: 2410396854066836737}
|
||||||
- component: {fileID: 8881035903807538774}
|
- component: {fileID: 8881035903807538774}
|
||||||
- component: {fileID: 2410396854066836736}
|
- component: {fileID: 2410396854066836736}
|
||||||
- component: {fileID: 7766790369216727835}
|
|
||||||
- component: {fileID: 2410396854066836739}
|
- component: {fileID: 2410396854066836739}
|
||||||
- component: {fileID: 7917930601971724287}
|
|
||||||
- component: {fileID: 8316039429838813759}
|
- component: {fileID: 8316039429838813759}
|
||||||
- component: {fileID: 5185316313602682252}
|
- component: {fileID: 5185316313602682252}
|
||||||
- component: {fileID: 7290952889933214358}
|
- component: {fileID: 7290952889933214358}
|
||||||
- component: {fileID: 121913343521417838}
|
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: Frank
|
m_Name: Frank
|
||||||
m_TagString: Player
|
m_TagString: Player
|
||||||
@ -200,21 +197,6 @@ CapsuleCollider2D:
|
|||||||
m_Offset: {x: -0.15, y: 0}
|
m_Offset: {x: -0.15, y: 0}
|
||||||
m_Size: {x: 1.64, y: 2.91}
|
m_Size: {x: 1.64, y: 2.91}
|
||||||
m_Direction: 1
|
m_Direction: 1
|
||||||
--- !u!114 &7766790369216727835
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 2410396854066836738}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: e4ea2b46765b2a94c81f15618d3ea519, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
_LevelManager1: {fileID: 0}
|
|
||||||
isFalling: 0
|
|
||||||
counter: 0
|
|
||||||
--- !u!114 &2410396854066836739
|
--- !u!114 &2410396854066836739
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -227,18 +209,6 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 4760965f3d035f84db6a6741d746428c, type: 3}
|
m_Script: {fileID: 11500000, guid: 4760965f3d035f84db6a6741d746428c, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
--- !u!114 &7917930601971724287
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 2410396854066836738}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 5c8672c5b58eae84da6091aa48615de7, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
--- !u!114 &8316039429838813759
|
--- !u!114 &8316039429838813759
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -277,18 +247,5 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: e4ea2b46765b2a94c81f15618d3ea519, type: 3}
|
m_Script: {fileID: 11500000, guid: e4ea2b46765b2a94c81f15618d3ea519, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
_LevelManager1: {fileID: 2410396854066836738}
|
|
||||||
isFalling: 0
|
isFalling: 0
|
||||||
counter: 0
|
counter: 0
|
||||||
--- !u!114 &121913343521417838
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 2410396854066836738}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: a821d8b41cb035c44a9a7c0b05ede9c4, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
|
73
Assets/AssetsFORELLE/Prefabs/NoDimShift.prefab
generated
Normal file
73
Assets/AssetsFORELLE/Prefabs/NoDimShift.prefab
generated
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &550275523921638491
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 550275523921638488}
|
||||||
|
- component: {fileID: 550275523921638489}
|
||||||
|
- component: {fileID: 550275523921638486}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: NoDimShift
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &550275523921638488
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 550275523921638491}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 9.19, y: -4.18, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!61 &550275523921638489
|
||||||
|
BoxCollider2D:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 550275523921638491}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_Density: 1
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IsTrigger: 1
|
||||||
|
m_UsedByEffector: 0
|
||||||
|
m_UsedByComposite: 0
|
||||||
|
m_Offset: {x: -5.57, y: 0}
|
||||||
|
m_SpriteTilingProperty:
|
||||||
|
border: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
pivot: {x: 0, y: 0}
|
||||||
|
oldSize: {x: 0, y: 0}
|
||||||
|
newSize: {x: 0, y: 0}
|
||||||
|
adaptiveTilingThreshold: 0
|
||||||
|
drawMode: 0
|
||||||
|
adaptiveTiling: 0
|
||||||
|
m_AutoTiling: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Size: {x: 22.82, y: 3.34}
|
||||||
|
m_EdgeRadius: 0
|
||||||
|
--- !u!114 &550275523921638486
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 550275523921638491}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: ca046cb971e6b024aa39f680d291b6cb, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
7
Assets/AssetsFORELLE/Prefabs/NoDimShift.prefab.meta
generated
Normal file
7
Assets/AssetsFORELLE/Prefabs/NoDimShift.prefab.meta
generated
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 41aef91f60ca7f14797653dfa4481227
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
4872
Assets/AssetsFORELLE/Prefabs/ParticlePlatformsDim1.prefab
generated
Normal file
4872
Assets/AssetsFORELLE/Prefabs/ParticlePlatformsDim1.prefab
generated
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/AssetsFORELLE/Prefabs/ParticlePlatformsDim1.prefab.meta
generated
Normal file
7
Assets/AssetsFORELLE/Prefabs/ParticlePlatformsDim1.prefab.meta
generated
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f6843a55cb00c214ebc74e6f5e3b8ba2
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
4872
Assets/AssetsFORELLE/Prefabs/ParticlePlatformsDim2.prefab
generated
Normal file
4872
Assets/AssetsFORELLE/Prefabs/ParticlePlatformsDim2.prefab
generated
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/AssetsFORELLE/Prefabs/ParticlePlatformsDim2.prefab.meta
generated
Normal file
7
Assets/AssetsFORELLE/Prefabs/ParticlePlatformsDim2.prefab.meta
generated
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: de0dcd9c433e06d47a2c541a01d54f65
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
Assets/AssetsFORELLE/Script/BossLevel.meta
generated
Normal file
8
Assets/AssetsFORELLE/Script/BossLevel.meta
generated
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d757af3b742a9a1498eef5e57f7ccef2
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
33
Assets/AssetsFORELLE/Script/BossLevel/Amboss.cs
Normal file
33
Assets/AssetsFORELLE/Script/BossLevel/Amboss.cs
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class Amboss : MonoBehaviour
|
||||||
|
{
|
||||||
|
private GameObject anvil;
|
||||||
|
public bool one;
|
||||||
|
public bool two;
|
||||||
|
public bool three;
|
||||||
|
public bool four;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
anvil = GameObject.Find("ambos");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void FixedUpdate()
|
||||||
|
{
|
||||||
|
|
||||||
|
if(one&&two&&three&&four)
|
||||||
|
{
|
||||||
|
anvil.GetComponent<Rigidbody2D>().constraints = RigidbodyConstraints2D.None;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
11
Assets/AssetsFORELLE/Script/BossLevel/Amboss.cs.meta
generated
Normal file
11
Assets/AssetsFORELLE/Script/BossLevel/Amboss.cs.meta
generated
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2295a2c765238bc4cb91c35b0ec7d6a5
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
44
Assets/AssetsFORELLE/Script/BossLevel/Bang.cs
Normal file
44
Assets/AssetsFORELLE/Script/BossLevel/Bang.cs
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class Bang : MonoBehaviour
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public IEnumerator Banger(GameObject projectilePrefab,Transform t ,Transform dim, Vector2 shotSpeed, float colliderDisabledSeconds, float shotAliveSeconds)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
// create projectile
|
||||||
|
GameObject projectile = Instantiate(projectilePrefab,
|
||||||
|
t.position,
|
||||||
|
t.rotation);
|
||||||
|
projectile.transform.SetParent(dim);
|
||||||
|
|
||||||
|
// add force to projectile
|
||||||
|
projectile.GetComponent<Rigidbody2D>().velocity = shotSpeed;
|
||||||
|
|
||||||
|
// wait until enabling collider
|
||||||
|
yield return new WaitForSeconds(colliderDisabledSeconds);
|
||||||
|
projectile.GetComponent<Collider2D>().enabled = true;
|
||||||
|
|
||||||
|
// wait given time before destroying
|
||||||
|
yield return new WaitForSeconds(shotAliveSeconds);
|
||||||
|
|
||||||
|
Destroy(projectile);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
11
Assets/AssetsFORELLE/Script/BossLevel/Bang.cs.meta
generated
Normal file
11
Assets/AssetsFORELLE/Script/BossLevel/Bang.cs.meta
generated
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9a05e7449f649e843b5439906379b81c
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -6,6 +6,7 @@ public class BossLevel : MonoBehaviour
|
|||||||
{
|
{
|
||||||
[SerializeField] private GameObject thepoint;
|
[SerializeField] private GameObject thepoint;
|
||||||
[SerializeField] private Transform[] respawnPoints;
|
[SerializeField] private Transform[] respawnPoints;
|
||||||
|
[SerializeField] private EdgeCollider2D[] Platforms;
|
||||||
|
|
||||||
|
|
||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
28
Assets/AssetsFORELLE/Script/BossLevel/DynamicRespawn.cs
Normal file
28
Assets/AssetsFORELLE/Script/BossLevel/DynamicRespawn.cs
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class DynamicRespawn : MonoBehaviour
|
||||||
|
{
|
||||||
|
[SerializeField] private Transform respawn;
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnTriggerEnter2D(Collider2D col)
|
||||||
|
{
|
||||||
|
if(CompareTag("Player"))
|
||||||
|
{
|
||||||
|
respawn.transform.SetPositionAndRotation(gameObject.transform.position ,Quaternion.identity);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
11
Assets/AssetsFORELLE/Script/BossLevel/DynamicRespawn.cs.meta
generated
Normal file
11
Assets/AssetsFORELLE/Script/BossLevel/DynamicRespawn.cs.meta
generated
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d246e9ee618d841439a0c6ac305009a9
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
52
Assets/AssetsFORELLE/Script/BossLevel/KitchenGunBossMod.cs
Normal file
52
Assets/AssetsFORELLE/Script/BossLevel/KitchenGunBossMod.cs
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.Serialization;
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
WICHTIG
|
||||||
|
Für dieses Script muss ein Object namens "RespawnProjectile" vorhanden sein an dem man wieder spawnt
|
||||||
|
Collider Disabled Seconds muss so gesetzt werden das das Projectil aus der Quelle rauskommt ohne zerstört zu werden
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class KitchenGunBossMod : MonoBehaviour
|
||||||
|
{
|
||||||
|
|
||||||
|
private Bang bullet;
|
||||||
|
private IEnumerator coroutine;
|
||||||
|
// The shot projectiles
|
||||||
|
public GameObject projectilePrefab;
|
||||||
|
// Time between shots, game needs to be restarted to take effect
|
||||||
|
public float shotIntervalSeconds = 1f;
|
||||||
|
// Time alive for the projectiles or until they hit something
|
||||||
|
public float shotAliveSeconds = 1f;
|
||||||
|
// Time until collider gets enabled
|
||||||
|
public float colliderDisabledSeconds = .2f;
|
||||||
|
// Speed of projectiles
|
||||||
|
public Vector2 shotSpeed = new Vector2(1f, 0f);
|
||||||
|
// Smallest step size for shot speed
|
||||||
|
private short shotSpeedStepSize = 50;
|
||||||
|
[SerializeField] private bool dim1;
|
||||||
|
private Transform dim;
|
||||||
|
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
if(dim1){dim=GameObject.Find("Dim1").transform;} else {dim=GameObject.Find("Dim2").transform;}
|
||||||
|
bullet = GameObject.Find("DimAll").GetComponent<Bang>();
|
||||||
|
InvokeRepeating("RecurringBang",0f,shotIntervalSeconds);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void RecurringBang()
|
||||||
|
{
|
||||||
|
coroutine = bullet.Banger(projectilePrefab, transform, dim, shotSpeed, colliderDisabledSeconds, shotAliveSeconds);
|
||||||
|
StartCoroutine(coroutine);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
11
Assets/AssetsFORELLE/Script/BossLevel/KitchenGunBossMod.cs.meta
generated
Normal file
11
Assets/AssetsFORELLE/Script/BossLevel/KitchenGunBossMod.cs.meta
generated
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 77d745175c8c7064ea90f3991f53f0e1
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,58 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class PlayerPressurePlateBossMod: MonoBehaviour
|
||||||
|
{
|
||||||
|
|
||||||
|
public SpriteRenderer spriteRenderer;
|
||||||
|
public Sprite originalSprite;
|
||||||
|
public Sprite activatedSprite;
|
||||||
|
public GameObject[] doors;
|
||||||
|
private Amboss script;
|
||||||
|
[SerializeField] int num;
|
||||||
|
private Transform thepoint;
|
||||||
|
|
||||||
|
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
script = GameObject.Find("DimAll").GetComponent<Amboss>();
|
||||||
|
thepoint = GameObject.Find("RespawnProjectile").transform;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnTriggerEnter2D(Collider2D other) {
|
||||||
|
spriteRenderer.sprite = activatedSprite;
|
||||||
|
|
||||||
|
foreach (var door in doors)
|
||||||
|
{
|
||||||
|
door.SetActive(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
thepoint.transform.SetPositionAndRotation(gameObject.transform.position + new Vector3(0,1,0),Quaternion.identity);
|
||||||
|
|
||||||
|
switch (num)
|
||||||
|
{
|
||||||
|
case 1: script.one = true;
|
||||||
|
break;
|
||||||
|
case 2: script.two = true;
|
||||||
|
break;
|
||||||
|
case 3: script.three = true;
|
||||||
|
break;
|
||||||
|
case 4: script.four = true;
|
||||||
|
break;
|
||||||
|
default: break;
|
||||||
|
}
|
||||||
|
|
||||||
|
Destroy(gameObject.GetComponent<EdgeCollider2D>());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
11
Assets/AssetsFORELLE/Script/BossLevel/PlayerPressurePlateBossMod.cs.meta
generated
Normal file
11
Assets/AssetsFORELLE/Script/BossLevel/PlayerPressurePlateBossMod.cs.meta
generated
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9d3dc8c732803034082446db81dea51a
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -8,7 +8,7 @@ public class DimShift : MonoBehaviour
|
|||||||
// 0 = inactive in Dimension 1
|
// 0 = inactive in Dimension 1
|
||||||
// 1 = active in Dimension 1
|
// 1 = active in Dimension 1
|
||||||
[SerializeField] private bool inFirstDim;
|
[SerializeField] private bool inFirstDim;
|
||||||
[SerializeField] private bool ShiftingEnabled;
|
[SerializeField] public bool ShiftingEnabled;
|
||||||
|
|
||||||
|
|
||||||
AudioSource Audio1;
|
AudioSource Audio1;
|
||||||
|
38
Assets/AssetsFORELLE/Script/NoShift.cs
Normal file
38
Assets/AssetsFORELLE/Script/NoShift.cs
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class NoShift : MonoBehaviour
|
||||||
|
{
|
||||||
|
|
||||||
|
private DimShift dimshift;
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
dimshift = GameObject.Find("Frank").GetComponent<DimShift>();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnTriggerEnter2D(Collider2D col)
|
||||||
|
{
|
||||||
|
if(col.CompareTag("Player"))
|
||||||
|
{
|
||||||
|
dimshift.ShiftingEnabled = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnTriggerExit2D(Collider2D col)
|
||||||
|
{
|
||||||
|
if(col.CompareTag("Player"))
|
||||||
|
{
|
||||||
|
dimshift.ShiftingEnabled = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
11
Assets/AssetsFORELLE/Script/NoShift.cs.meta
generated
Normal file
11
Assets/AssetsFORELLE/Script/NoShift.cs.meta
generated
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ca046cb971e6b024aa39f680d291b6cb
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
907
Assets/Scenes/ScenesInGame/14Level_Vanessa.unity
generated
907
Assets/Scenes/ScenesInGame/14Level_Vanessa.unity
generated
File diff suppressed because it is too large
Load Diff
1990
Assets/Scenes/ScenesInGame/15EndBoss.unity
generated
1990
Assets/Scenes/ScenesInGame/15EndBoss.unity
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user