Cleanup to be able to build
This commit is contained in:
parent
9b72751e15
commit
8be9c3cd70
|
@ -9,19 +9,19 @@ namespace AsteroidGame.Entities.Structures.Scripts
|
||||||
public List<StructureBase> structureList;
|
public List<StructureBase> structureList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class MakeScriptableObject
|
// public static class MakeScriptableObject
|
||||||
{
|
// {
|
||||||
[MenuItem("Assets/Create/ScriptableObject:AvailableStructures")]
|
// [MenuItem("Assets/Create/ScriptableObject:AvailableStructures")]
|
||||||
public static void CreateMyAsset()
|
// public static void CreateMyAsset()
|
||||||
{
|
// {
|
||||||
StructureBaseScriptableObject asset = ScriptableObject.CreateInstance<StructureBaseScriptableObject>();
|
// StructureBaseScriptableObject asset = ScriptableObject.CreateInstance<StructureBaseScriptableObject>();
|
||||||
|
//
|
||||||
AssetDatabase.CreateAsset(asset, "Assets/Entities/Structures/AvailableStructures.asset");
|
// AssetDatabase.CreateAsset(asset, "Assets/Entities/Structures/AvailableStructures.asset");
|
||||||
AssetDatabase.SaveAssets();
|
// AssetDatabase.SaveAssets();
|
||||||
|
//
|
||||||
EditorUtility.FocusProjectWindow();
|
// EditorUtility.FocusProjectWindow();
|
||||||
|
//
|
||||||
Selection.activeObject = asset;
|
// Selection.activeObject = asset;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,15 +38,6 @@ namespace AsteroidGame.Handlers
|
||||||
return allEnemies;
|
return allEnemies;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Vector2Int GetCoordinatesFromPosition(Vector3 position)
|
|
||||||
{
|
|
||||||
Vector2Int coordinates = new Vector2Int();
|
|
||||||
coordinates.x = Mathf.RoundToInt(position.x / UnityEditor.EditorSnapSettings.move.x);
|
|
||||||
coordinates.y = Mathf.RoundToInt(position.z / UnityEditor.EditorSnapSettings.move.z);
|
|
||||||
|
|
||||||
return coordinates;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void NotifyEnemiesOfNewPath()
|
public void NotifyEnemiesOfNewPath()
|
||||||
{
|
{
|
||||||
BroadcastMessage("RecalculatePath", SendMessageOptions.DontRequireReceiver);
|
BroadcastMessage("RecalculatePath", SendMessageOptions.DontRequireReceiver);
|
||||||
|
|
Loading…
Reference in New Issue