Commit 306d60df authored by Bene's avatar Bene

Added quickfix for plattforms that are bugging out of the map (every object...

Added quickfix for plattforms that are bugging out of the map (every object gets automaticly destroyed when it exists for 5 seconds)
parent d6f6f33e
......@@ -12,6 +12,7 @@ GameObject:
- component: {fileID: 4152650444531060623}
- component: {fileID: 4152650444531060625}
- component: {fileID: 4152650444531060626}
- component: {fileID: 4312901630345662218}
m_Layer: 14
m_Name: Plattform
m_TagString: Untagged
......@@ -116,3 +117,15 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
speed: -10
--- !u!114 &4312901630345662218
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4152650444531060620}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a81420929d6608d4cbc2250230178679, type: 3}
m_Name:
m_EditorClassIdentifier:
......@@ -327,7 +327,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &197908591
PrefabInstance:
......@@ -555,7 +555,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 4
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &366228724 stripped
GameObject:
......@@ -828,7 +828,7 @@ Transform:
- {fileID: 1189132007}
- {fileID: 483105045}
m_Father: {fileID: 0}
m_RootOrder: 6
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &913672670
PrefabInstance:
......@@ -1142,7 +1142,7 @@ PrefabInstance:
- target: {fileID: 3596859392753652876, guid: d4dc941ce73b9a94e9f084d2f16f034c,
type: 3}
propertyPath: m_RootOrder
value: 2
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3596859392753652876, guid: d4dc941ce73b9a94e9f084d2f16f034c,
type: 3}
......@@ -1268,7 +1268,7 @@ RectTransform:
- {fileID: 1790907}
- {fileID: 418883915}
m_Father: {fileID: 0}
m_RootOrder: 8
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
......@@ -1311,7 +1311,7 @@ Transform:
- {fileID: 2020704786}
- {fileID: 366228727}
m_Father: {fileID: 0}
m_RootOrder: 7
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1573312957
GameObject:
......@@ -1622,11 +1622,11 @@ MonoBehaviour:
breakBeforeColorGrading: 0
m_BeforeTransparentBundles: []
m_BeforeStackBundles:
- assemblyQualifiedName: Scanlines, Assembly-CSharp, Version=0.0.0.0, Culture=neutral,
- assemblyQualifiedName: Scanlines, Supergame.PostProcessing, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null
m_AfterStackBundles:
- assemblyQualifiedName: CrtDistortion, Assembly-CSharp, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null
- assemblyQualifiedName: CrtDistortion, Supergame.PostProcessing, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
--- !u!1 &1776231856
GameObject:
m_ObjectHideFlags: 0
......@@ -1657,7 +1657,7 @@ Transform:
- {fileID: 1024577715}
- {fileID: 1734335043}
m_Father: {fileID: 0}
m_RootOrder: 9
m_RootOrder: 8
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1999727448
PrefabInstance:
......@@ -1945,7 +1945,7 @@ PrefabInstance:
- target: {fileID: 3997192642199772226, guid: de0fae27cb0f695419b82afc6c9bc99d,
type: 3}
propertyPath: m_RootOrder
value: 5
value: 4
objectReference: {fileID: 0}
- target: {fileID: 3997192642199772226, guid: de0fae27cb0f695419b82afc6c9bc99d,
type: 3}
......@@ -1977,84 +1977,10 @@ PrefabInstance:
- target: {fileID: 3974914839940447237, guid: de0fae27cb0f695419b82afc6c9bc99d,
type: 3}
propertyPath: maximumamountofplattforms
value: 4
value: 2
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: de0fae27cb0f695419b82afc6c9bc99d, type: 3}
--- !u!1001 &1603891778198431216
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 2857735847091246098, guid: b036cd19324fb1e42b2e590833b6b325,
type: 3}
propertyPath: m_Name
value: Pickup
objectReference: {fileID: 0}
- target: {fileID: 2857735847091246098, guid: b036cd19324fb1e42b2e590833b6b325,
type: 3}
propertyPath: m_TagString
value: Pickup
objectReference: {fileID: 0}
- target: {fileID: 2857735847091246096, guid: b036cd19324fb1e42b2e590833b6b325,
type: 3}
propertyPath: m_LocalPosition.x
value: 0.23
objectReference: {fileID: 0}
- target: {fileID: 2857735847091246096, guid: b036cd19324fb1e42b2e590833b6b325,
type: 3}
propertyPath: m_LocalPosition.y
value: 2.74
objectReference: {fileID: 0}
- target: {fileID: 2857735847091246096, guid: b036cd19324fb1e42b2e590833b6b325,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2857735847091246096, guid: b036cd19324fb1e42b2e590833b6b325,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2857735847091246096, guid: b036cd19324fb1e42b2e590833b6b325,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2857735847091246096, guid: b036cd19324fb1e42b2e590833b6b325,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2857735847091246096, guid: b036cd19324fb1e42b2e590833b6b325,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2857735847091246096, guid: b036cd19324fb1e42b2e590833b6b325,
type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2857735847091246096, guid: b036cd19324fb1e42b2e590833b6b325,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2857735847091246096, guid: b036cd19324fb1e42b2e590833b6b325,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2857735847091246096, guid: b036cd19324fb1e42b2e590833b6b325,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: b036cd19324fb1e42b2e590833b6b325, type: 3}
--- !u!1001 &2319135135437203627
PrefabInstance:
m_ObjectHideFlags: 0
......
......@@ -26,8 +26,6 @@ public class Coincalculation : MonoBehaviour
public void increasecoins(int added)
{
coins += added;
Debug.Log(coins);
}
public void decreasecoins(int removed)
......
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DestroyYourself : MonoBehaviour
{
float timeleft = 5;
void FixedUpdate()
{
timeleft -= Time.deltaTime;
if(timeleft < 0)
{
Destroy(gameObject);
}
}
}
fileFormatVersion: 2
guid: a81420929d6608d4cbc2250230178679
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
......@@ -15,7 +15,6 @@ public class collider : MonoBehaviour
{
coincalculator.GetComponent<Coincalculation>().increasecoins(1);
Destroy (GameObject.FindWithTag("Pickup"));
Debug.Log("Picked Up!");
}
else if (other.collider.gameObject.layer == LayerMask.NameToLayer("Scribble.Env") && other.collider.gameObject.CompareTag("DestroyablePlattform"))
......
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