Commit 408f312a by Juliper

fix-2

parents 5e5ec16c 52ac555a
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -4,7 +4,6 @@ using UnityEngine; ...@@ -4,7 +4,6 @@ using UnityEngine;
public class BackgroundChanger : MonoBehaviour { public class BackgroundChanger : MonoBehaviour {
private List<GameObject> backgroundGroup = new List<GameObject>(); private List<GameObject> backgroundGroup = new List<GameObject>();
private List<GameObject> obstacleGroup = new List<GameObject>(); private List<GameObject> obstacleGroup = new List<GameObject>();
private GameObject[] gameObjectGroup; private GameObject[] gameObjectGroup;
...@@ -23,7 +22,6 @@ public class BackgroundChanger : MonoBehaviour { ...@@ -23,7 +22,6 @@ public class BackgroundChanger : MonoBehaviour {
background = GameObject.FindWithTag("Background"); background = GameObject.FindWithTag("Background");
} }
private void CollectObstacles() private void CollectObstacles()
{ {
foreach(string color in colors) foreach(string color in colors)
...@@ -67,7 +65,6 @@ public class BackgroundChanger : MonoBehaviour { ...@@ -67,7 +65,6 @@ public class BackgroundChanger : MonoBehaviour {
UpdateObstacle(tagColor); UpdateObstacle(tagColor);
} }
private void UpdateObstacle(string tagColor) private void UpdateObstacle(string tagColor)
{ {
foreach (GameObject obstacle in obstacleGroup) foreach (GameObject obstacle in obstacleGroup)
......
...@@ -3,16 +3,7 @@ ...@@ -3,16 +3,7 @@
--- !u!78 &1 --- !u!78 &1
TagManager: TagManager:
serializedVersion: 2 serializedVersion: 2
tags: tags: []
- BlueObstacle
- GreenObstacle
- Background
- BlueBackground
- GreenBackground
- WhiteObstacle
- YellowObstacle
- GreyObstacle
- Water
layers: layers:
- Default - Default
- TransparentFX - TransparentFX
......
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