Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueIceshard committed Jun 30, 2018
2 parents bbfc667 + bfec589 commit 4300e68
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using UnityEngine;

public interface IKillable {
public class ColorChanger : MonoBehaviour {

void Kill();
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions Neonmania/Assets/Scripts/EnemyColorChanger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ private void Start () {
int level = GetComponent<EnemyPropertyController>().properties.level;

currentColor = GetLevelColor(level);

Debug.Log(level + ": " + currentColor);

ApplyColor(currentColor);
}

Expand Down
3 changes: 0 additions & 3 deletions Neonmania/Assets/Scripts/EnemyProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ public class EnemyProperties : ScriptableObject
// higher is stronger
public float strengthIndicator = 0.1f;

[Header("Handlers")]
public KillHandler deathHandler;

[Header("Boss Properties")]
// if true, players
public bool isBoss = false;
Expand Down
8 changes: 0 additions & 8 deletions Neonmania/Assets/Scripts/Interfaces.meta

This file was deleted.

11 changes: 0 additions & 11 deletions Neonmania/Assets/Scripts/Interfaces/IKillable.cs.meta

This file was deleted.

16 changes: 0 additions & 16 deletions Neonmania/Assets/Scripts/KillHandler.cs

This file was deleted.

6 changes: 1 addition & 5 deletions Neonmania/Assets/Scripts/PlayerColorChanger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,14 @@

public class PlayerColorChanger : MonoBehaviour {


private Rigidbody rb;
private int color = 0;

private void Start () {
rb = GetComponent<Rigidbody>();
color = UnityEngine.Random.Range(0, 3);
ApplyColor(GetColor());
}

private void Update () {

}

private void SwitchColor() {
color = (color + 1) % 3;
Expand Down

0 comments on commit 4300e68

Please sign in to comment.