Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ Logs
Assembly-CSharp.csproj
Assembly-CSharp-Editor.csproj
CsharpMainProject.sln
*.vsidx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .vs/CSharpMainProjectForkOfMy/v17/.suo
Binary file not shown.
37 changes: 37 additions & 0 deletions .vs/CSharpMainProjectForkOfMy/v17/DocumentLayout.backup.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"Version": 1,
"WorkspaceRootPath": "D:\\GitFork\\CSharpMainProjectForkOfMy\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{76DAA7C6-AB58-CBCE-6D56-6B55B8F46D54}|Root.csproj|D:\\GitFork\\CSharpMainProjectForkOfMy\\assets\\scripts\\enterpoint.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{76DAA7C6-AB58-CBCE-6D56-6B55B8F46D54}|Root.csproj|solutionrelative:assets\\scripts\\enterpoint.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 0,
"Children": [
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "EnterPoint.cs",
"DocumentMoniker": "D:\\GitFork\\CSharpMainProjectForkOfMy\\Assets\\Scripts\\EnterPoint.cs",
"RelativeDocumentMoniker": "Assets\\Scripts\\EnterPoint.cs",
"ToolTip": "D:\\GitFork\\CSharpMainProjectForkOfMy\\Assets\\Scripts\\EnterPoint.cs",
"RelativeToolTip": "Assets\\Scripts\\EnterPoint.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAA8AAAAjAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2026-07-20T19:41:37.834Z",
"EditorCaption": ""
}
]
}
]
}
]
}
54 changes: 54 additions & 0 deletions .vs/CSharpMainProjectForkOfMy/v17/DocumentLayout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"Version": 1,
"WorkspaceRootPath": "D:\\GitFork\\CSharpMainProjectForkOfMy\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{EB40919C-567D-FC61-559C-EF5EA60BF21B}|Assembly-CSharp.csproj|d:\\gitfork\\csharpmainprojectforkofmy\\assets\\scribes\\myfirstscript.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{EB40919C-567D-FC61-559C-EF5EA60BF21B}|Assembly-CSharp.csproj|solutionrelative:assets\\scribes\\myfirstscript.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{76DAA7C6-AB58-CBCE-6D56-6B55B8F46D54}|Root.csproj|d:\\gitfork\\csharpmainprojectforkofmy\\assets\\scripts\\enterpoint.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{76DAA7C6-AB58-CBCE-6D56-6B55B8F46D54}|Root.csproj|solutionrelative:assets\\scripts\\enterpoint.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
}
],
"DocumentGroupContainers": [
{
"Orientation": 0,
"VerticalTabListWidth": 256,
"DocumentGroups": [
{
"DockedWidth": 200,
"SelectedChildIndex": 0,
"Children": [
{
"$type": "Document",
"DocumentIndex": 0,
"Title": "MyFirstScript.cs",
"DocumentMoniker": "D:\\GitFork\\CSharpMainProjectForkOfMy\\Assets\\Scribes\\MyFirstScript.cs",
"RelativeDocumentMoniker": "Assets\\Scribes\\MyFirstScript.cs",
"ToolTip": "D:\\GitFork\\CSharpMainProjectForkOfMy\\Assets\\Scribes\\MyFirstScript.cs",
"RelativeToolTip": "Assets\\Scribes\\MyFirstScript.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAkAAAARAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2026-07-22T18:04:06.577Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "EnterPoint.cs",
"DocumentMoniker": "D:\\GitFork\\CSharpMainProjectForkOfMy\\Assets\\Scripts\\EnterPoint.cs",
"RelativeDocumentMoniker": "Assets\\Scripts\\EnterPoint.cs",
"ToolTip": "D:\\GitFork\\CSharpMainProjectForkOfMy\\Assets\\Scripts\\EnterPoint.cs",
"RelativeToolTip": "Assets\\Scripts\\EnterPoint.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAA8AAAAjAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2026-07-20T19:41:37.834Z",
"EditorCaption": ""
}
]
}
]
}
]
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
45 changes: 45 additions & 0 deletions Assets/Scenes/Main.unity
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,50 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}
--- !u!1 &628591467
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 628591469}
- component: {fileID: 628591468}
m_Layer: 0
m_Name: GameObject
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &628591468
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 628591467}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8b1b9a7e888dff7409bc65f050b78fef, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!4 &628591469
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 628591467}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 16.586245, y: 3.6194468, z: 31.594501}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &705507993
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -560,3 +604,4 @@ SceneRoots:
- {fileID: 317197435}
- {fileID: 599804443}
- {fileID: 368710219}
- {fileID: 628591469}
8 changes: 8 additions & 0 deletions Assets/Scribes.meta

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

33 changes: 33 additions & 0 deletions Assets/Scribes/MyFirstScript.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MyFirstScript : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
//int n = 20;
//int s = 0;
//int p = 1;

//if (n>=0)
//{
// for (int a = 1; a < n; a++)
// {
// s += a;
// p *= a;
// }
//} else
//{
// Debug.Log("Try another time :}");
//}

// Debug.Log(s);
//Debug.Log(p);
}




}
11 changes: 11 additions & 0 deletions Assets/Scribes/MyFirstScript.cs.meta

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

4 changes: 4 additions & 0 deletions Assets/Scripts/Controller/BotController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
//hello
//How are you?
//i'm fine
//Me too, thank`s
//Don`t u think that the weather is fine too?
//Sure, it is
//So, what else should I say?
namespace Controller
{
public class BotController
Expand Down
6 changes: 5 additions & 1 deletion Assets/Scripts/EnterPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ public class EnterPoint : MonoBehaviour
{
[SerializeField] private Settings _settings;
[SerializeField] private Canvas _targetCanvas;
private float _timeScale = 1;
private float _timeScale = 5;

/*/
* ������� ������� ������� �� 5
*/

void Start()
{
Time.timeScale = _timeScale;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ protected override void UpdateImpl(float deltaTime, float time)
// Insert you code here
///////////////////////////////////////

float maxHeight = _totalDistance * 0.6f;

float tH = (t * 2 - 1);

localHeight = maxHeight * (-tH * tH + 1);

///////////////////////////////////////
// End of the code to insert
Expand Down
20 changes: 19 additions & 1 deletion Assets/Scripts/UnitBrains/Player/SecondUnitBrain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,27 @@ protected override void GenerateProjectiles(Vector2Int forTarget, List<BaseProje
float overheatTemperature = OverheatTemperature;
///////////////////////////////////////
// Homework 1.3 (1st block, 3rd module)
///////////////////////////////////////
///////////////////////////////////////

/*
var projectile = CreateProjectile(forTarget);
AddProjectileToList(projectile, intoList);
*/

if (GetTemperature() >= overheatTemperature)
{
Debug.Log(_overheated);
return;
}
IncreaseTemperature();

for (int i = 0; i < GetTemperature(); i++)
{
Debug.Log(_temperature);
var projectile = CreateProjectile(forTarget);
AddProjectileToList(projectile, intoList);
}

///////////////////////////////////////
}

Expand Down
38 changes: 38 additions & 0 deletions CSharpMainProjectForkOfMy.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp", "Assembly-CSharp.csproj", "{EB40919C-567D-FC61-559C-EF5EA60BF21B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp-Editor", "Assembly-CSharp-Editor.csproj", "{FD6D0607-C48F-AC3D-A844-4B8FC4863F5A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Root", "Root.csproj", "{76DAA7C6-AB58-CBCE-6D56-6B55B8F46D54}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "Tests.csproj", "{D1BBA8A8-DFA6-625E-6B86-1D222E66177E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{EB40919C-567D-FC61-559C-EF5EA60BF21B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EB40919C-567D-FC61-559C-EF5EA60BF21B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EB40919C-567D-FC61-559C-EF5EA60BF21B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EB40919C-567D-FC61-559C-EF5EA60BF21B}.Release|Any CPU.Build.0 = Release|Any CPU
{FD6D0607-C48F-AC3D-A844-4B8FC4863F5A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FD6D0607-C48F-AC3D-A844-4B8FC4863F5A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FD6D0607-C48F-AC3D-A844-4B8FC4863F5A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FD6D0607-C48F-AC3D-A844-4B8FC4863F5A}.Release|Any CPU.Build.0 = Release|Any CPU
{76DAA7C6-AB58-CBCE-6D56-6B55B8F46D54}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{76DAA7C6-AB58-CBCE-6D56-6B55B8F46D54}.Debug|Any CPU.Build.0 = Debug|Any CPU
{76DAA7C6-AB58-CBCE-6D56-6B55B8F46D54}.Release|Any CPU.ActiveCfg = Release|Any CPU
{76DAA7C6-AB58-CBCE-6D56-6B55B8F46D54}.Release|Any CPU.Build.0 = Release|Any CPU
{D1BBA8A8-DFA6-625E-6B86-1D222E66177E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D1BBA8A8-DFA6-625E-6B86-1D222E66177E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D1BBA8A8-DFA6-625E-6B86-1D222E66177E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D1BBA8A8-DFA6-625E-6B86-1D222E66177E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Loading