diff --git a/Assembly-CSharp.csproj b/Assembly-CSharp.csproj
index bbf4f05..8f67206 100644
--- a/Assembly-CSharp.csproj
+++ b/Assembly-CSharp.csproj
@@ -60,7 +60,7 @@
-
+
diff --git a/Assets/Scripts/EnnemyCharacter.cs b/Assets/Scripts/EnemyCharacter.cs
similarity index 85%
rename from Assets/Scripts/EnnemyCharacter.cs
rename to Assets/Scripts/EnemyCharacter.cs
index 8be75cf..82a4deb 100644
--- a/Assets/Scripts/EnnemyCharacter.cs
+++ b/Assets/Scripts/EnemyCharacter.cs
@@ -2,7 +2,7 @@
using System.Collections.Generic;
using UnityEngine;
-public class EnnemyCharacter : MonoBehaviour
+public class EnemyCharacter : MonoBehaviour
{
// Start is called before the first frame update
void Start()
diff --git a/Assets/Scripts/EnnemyCharacter.cs.meta b/Assets/Scripts/EnemyCharacter.cs.meta
similarity index 75%
rename from Assets/Scripts/EnnemyCharacter.cs.meta
rename to Assets/Scripts/EnemyCharacter.cs.meta
index 949d5ae..f3f75ae 100644
--- a/Assets/Scripts/EnnemyCharacter.cs.meta
+++ b/Assets/Scripts/EnemyCharacter.cs.meta
@@ -1,10 +1,10 @@
fileFormatVersion: 2
-guid: 42afd9ea63e8b291086605e45d3d151f
+guid: 0c9b3f253372ab4a6be34655fcf054b1
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
- executionOrder: -3
+ executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
diff --git a/Assets/Scripts/Mover.cs b/Assets/Scripts/Mover.cs
index f044b7b..93b3499 100644
--- a/Assets/Scripts/Mover.cs
+++ b/Assets/Scripts/Mover.cs
@@ -30,7 +30,10 @@ public class Mover : MonoBehaviour
void Update()
{
- _maxSpeed = _character.MaxSpeed;
+ if (_character != null)
+ {
+ _maxSpeed = _character.MaxSpeed;
+ }
Vector2 currentPosition = _transform.position;
_transform.position = currentPosition + _maxSpeed * Time.deltaTime * _direction;
}
diff --git a/Assets/Scripts/PlayerCharacter.cs b/Assets/Scripts/PlayerCharacter.cs
index a73a9ed..b11ed6b 100644
--- a/Assets/Scripts/PlayerCharacter.cs
+++ b/Assets/Scripts/PlayerCharacter.cs
@@ -7,8 +7,6 @@ public class PlayerCharacter : AbstractCharacter
public override void Move(Vector2 movementDirection)
{
// TODO : Implement limits
- Debug.Log("Direction:");
- Debug.Log(movementDirection);
_mover.Direction = movementDirection;
}