diff --git a/interface/Assets/Scenes/SampleScene.unity b/interface/Assets/Scenes/SampleScene.unity index de41df2d..4f3d5ba3 100755 --- a/interface/Assets/Scenes/SampleScene.unity +++ b/interface/Assets/Scenes/SampleScene.unity @@ -5071,7 +5071,7 @@ Transform: m_GameObject: {fileID: 519420028} serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 51.4, y: 25.55, z: -10} + m_LocalPosition: {x: 49.7, y: 25.55, z: -10} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] diff --git a/interface/Assets/Scripts/MapControl.cs b/interface/Assets/Scripts/MapControl.cs deleted file mode 100755 index 09c58033..00000000 --- a/interface/Assets/Scripts/MapControl.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using System.IO; -using UnityEngine; -using Protobuf; - -public class MapControl : SingletonMono -{ - public GameObject mapFa; - public void DrawMap(MessageOfMap map) - { - for (int i = 0; i < 50; i++) - { - for (int j = 0; j < 50; j++) - { - if (ParaDefine.GetInstance().PT(map.Rows[i].Cols[j])) - { - if (map.Rows[i].Cols[j] == PlaceType.Shadow) - ObjectCreater.GetInstance().CreateObject( - ParaDefine.GetInstance().PT(PlaceType.Space), - ParaDefine.GetInstance().CellToMap(i, j), - Quaternion.identity, - mapFa.transform); - ObjectCreater.GetInstance().CreateObject( - ParaDefine.GetInstance().PT(map.Rows[i].Cols[j]), - ParaDefine.GetInstance().CellToMap(i, j), - Quaternion.identity, - mapFa.transform); - } - } - } - } -} diff --git a/interface/Assets/Scripts/MessageManager.cs b/interface/Assets/Scripts/MessageManager.cs deleted file mode 100644 index d87b6a64..00000000 --- a/interface/Assets/Scripts/MessageManager.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using Protobuf; -using UnityEngine; - -public class MessageManager : Singleton -{ - public Dictionary Ship = new Dictionary(); - public Dictionary ShipG = new Dictionary(); - public Dictionary Bullet = new Dictionary(); - public Dictionary BulletG = new Dictionary(); -} \ No newline at end of file diff --git a/interface/Assets/Scripts/ObjectCreater.cs b/interface/Assets/Scripts/ObjectCreater.cs deleted file mode 100644 index 7d17f2fb..00000000 --- a/interface/Assets/Scripts/ObjectCreater.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -public class ObjectCreater : SingletonMono -{ - public GameObject CreateObject(GameObject targetG, Vector2 position, Quaternion quaternion, Transform targetPa, int teamKey = -1) - { - GameObject obj = Instantiate(targetG, position, quaternion, targetPa); - if (targetG.transform.childCount == 0) return obj; - Tuple col = RendererControl.GetInstance().GetColFromTeam(teamKey); - obj.transform.Find("mask1").GetComponent().material.color = col.Item1; - obj.transform.Find("mask2").GetComponent().material.color = col.Item2; - return obj; - } -} diff --git a/interface/Assets/Scripts/RendererControl.cs b/interface/Assets/Scripts/RendererControl.cs deleted file mode 100644 index 0e5f3817..00000000 --- a/interface/Assets/Scripts/RendererControl.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -public class RendererControl : Singleton -{ - public Tuple GetColFromTeam(int teamKey) - { - switch (teamKey) - { - case 0: return new Tuple(new Color(114f / 255, 107f / 255, 217f / 255, 1), new Color(107f / 255, 144f / 255, 217f / 255, 1)); - case 1: return new Tuple(new Color(217f / 255, 107f / 255, 107f / 255, 1), new Color(217f / 255, 163f / 255, 107f / 255, 1)); - default: return new Tuple(new Color(0, 0, 0, 1), new Color(0, 0, 0, 1)); - } - } -}