diff --git a/.idea/.idea.S_Jump-and-grub/.idea/.gitignore b/.idea/.idea.S_Jump-and-grub/.idea/.gitignore new file mode 100644 index 00000000..071f4fa6 --- /dev/null +++ b/.idea/.idea.S_Jump-and-grub/.idea/.gitignore @@ -0,0 +1,13 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Rider ignored files +/projectSettingsUpdater.xml +/contentModel.xml +/modules.xml +/.idea.S_Jump-and-grub.iml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/Assets/Scripts/Controller/GameInit.cs b/Assets/Scripts/Controller/GameInit.cs index a7671ba2..daeaa215 100644 --- a/Assets/Scripts/Controller/GameInit.cs +++ b/Assets/Scripts/Controller/GameInit.cs @@ -12,9 +12,9 @@ namespace Controller hexGrid.OnHexPainted += DoSomething; } - private void DoSomething() + private void DoSomething(HexCoordinates coordinates) { - Debug.Log("Painted!" ); + Debug.Log("Painted! " + coordinates ); } } } \ No newline at end of file diff --git a/Assets/Scripts/HexFiled/HexGrid.cs b/Assets/Scripts/HexFiled/HexGrid.cs index 9bfd1a82..e93bd52c 100644 --- a/Assets/Scripts/HexFiled/HexGrid.cs +++ b/Assets/Scripts/HexFiled/HexGrid.cs @@ -20,7 +20,7 @@ namespace HexFiled private Canvas _gridCanvas; private HexMesh _hexMesh; private GameObject _baseGameObject; - public Action OnHexPainted; + public Action OnHexPainted; public HexGrid(FieldData fieldData) { @@ -63,7 +63,7 @@ namespace HexFiled HexCell cell = _cells[index]; cell.color = _touchedColor; _hexMesh.Triangulate(_cells); - OnHexPainted.Invoke(); + OnHexPainted.Invoke(coordinates); } void CreateCell (int x, int z, int i) { Vector3 position; diff --git a/Assets/Документация.docx b/Assets/Документация.docx deleted file mode 100644 index e69de29b..00000000 diff --git a/Assets/Документация.docx.meta b/Assets/Документация.docx.meta deleted file mode 100644 index 1ac33f6a..00000000 --- a/Assets/Документация.docx.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 198923afa36640e48b1ab9562775b526 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: