Commit 05160591 authored by Christopher Benes's avatar Christopher Benes
Browse files

Level 15+17 gebaut

parent cf47262f
......@@ -229,11 +229,12 @@ MonoBehaviour:
m_EditorClassIdentifier:
cannonBarrel: {fileID: 1263581091867116}
fire: {fileID: 1087194835788670, guid: 3fd0675fac3d4794aafbb72c8557c635, type: 2}
shotsPerSeconds: 1
speed: 10
shotsPerSeconds: 0.5
speed: 7
anim: {fileID: 95144805117775786}
animRadVorne: {fileID: 95645392377643954}
animRadHinten: {fileID: 95763621902185322}
startAfterTime: 0
--- !u!212 &212085445371616958
SpriteRenderer:
m_ObjectHideFlags: 1
......@@ -266,8 +267,8 @@ SpriteRenderer:
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: -1398306507
m_SortingLayer: 3
m_SortingLayerID: 1483109359
m_SortingLayer: 4
m_SortingOrder: 1
m_Sprite: {fileID: 21300000, guid: 33ecf2ae4e3a2644bbed70e0c499ad5d, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
......@@ -312,8 +313,8 @@ SpriteRenderer:
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: -1398306507
m_SortingLayer: 3
m_SortingLayerID: 1483109359
m_SortingLayer: 4
m_SortingOrder: -1
m_Sprite: {fileID: 21300000, guid: 18bc6232e653f8f44965c2d0a6eed5cf, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
......@@ -358,8 +359,8 @@ SpriteRenderer:
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: -1398306507
m_SortingLayer: 3
m_SortingLayerID: 1483109359
m_SortingLayer: 4
m_SortingOrder: 0
m_Sprite: {fileID: 21300000, guid: 14cd72156ec4da5408968db87210c7e9, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
......
......@@ -140,8 +140,8 @@ SpriteRenderer:
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingLayerID: 1483109359
m_SortingLayer: 4
m_SortingOrder: 0
m_Sprite: {fileID: 21300000, guid: d3d269b56963fe24394615804bf332db, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
fileFormatVersion: 2
guid: df3d924b524ca944aa4f8fe3514771dc
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: b2af79685c49a3748b2bb639938870af
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -8,8 +8,14 @@ public class CannonController : MonoBehaviour, IResetable {
[SerializeField] private Animator anim;
[SerializeField] private Animator animRadVorne;
[SerializeField] private Animator animRadHinten;
[SerializeField] private float startAfterTime;
private float cooldown;
private float cooldown;
void Awake()
{
cooldown = startAfterTime;
}
private void FixedUpdate () {
if (cooldown <= 0) {
......@@ -32,6 +38,6 @@ public class CannonController : MonoBehaviour, IResetable {
}
public void ResetToLevelBegin() {
cooldown = 0;
cooldown = startAfterTime;
}
}
......@@ -5,6 +5,7 @@ using System.Linq;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.Tilemaps;
using NaughtyAttributes;
public class PlayerActor : MonoBehaviour, IResetable {
private const int MAX_STEPS = 128;
......@@ -97,6 +98,7 @@ public class PlayerActor : MonoBehaviour, IResetable {
}
}
[Button]
private void UpdateOrientation() {
transform.rotation = GetRotation(orientation, facing);
}
......
......@@ -50,4 +50,13 @@ EditorBuildSettings:
- enabled: 1
path: Assets/_Game/Scenes/Levels/Level14.unity
guid: 363a002c4d08c25409341d2a7fed4de1
- enabled: 1
path: Assets/_Game/Scenes/Levels/Level15.unity
guid: 9371fda64737d4442b4097fec4a95911
- enabled: 1
path: Assets/_Game/Scenes/Levels/Level16.unity
guid: df3d924b524ca944aa4f8fe3514771dc
- enabled: 1
path: Assets/_Game/Scenes/Levels/Level17.unity
guid: b2af79685c49a3748b2bb639938870af
m_configObjects: {}
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