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
Binary file not shown.
Binary file added .vs/CSharpMainProjectMainFork/v17/.suo
Binary file not shown.
54 changes: 54 additions & 0 deletions .vs/CSharpMainProjectMainFork/v17/DocumentLayout.backup.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\User\\Documents\\Fork Project\\CSharpMainProjectMainFork\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{CCB6B313-5493-2A6D-73EF-BFA5DC7D9E24}|Root.csproj|c:\\users\\user\\documents\\fork project\\csharpmainprojectmainfork\\assets\\scripts\\model\\runtime\\projectiles\\archtotileprojectile.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{CCB6B313-5493-2A6D-73EF-BFA5DC7D9E24}|Root.csproj|solutionrelative:assets\\scripts\\model\\runtime\\projectiles\\archtotileprojectile.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{CCB6B313-5493-2A6D-73EF-BFA5DC7D9E24}|Root.csproj|c:\\users\\user\\documents\\fork project\\csharpmainprojectmainfork\\assets\\scripts\\enterpoint.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{CCB6B313-5493-2A6D-73EF-BFA5DC7D9E24}|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": "ArchToTileProjectile.cs",
"DocumentMoniker": "C:\\Users\\User\\Documents\\Fork Project\\CSharpMainProjectMainFork\\Assets\\Scripts\\Model\\Runtime\\Projectiles\\ArchToTileProjectile.cs",
"RelativeDocumentMoniker": "Assets\\Scripts\\Model\\Runtime\\Projectiles\\ArchToTileProjectile.cs",
"ToolTip": "C:\\Users\\User\\Documents\\Fork Project\\CSharpMainProjectMainFork\\Assets\\Scripts\\Model\\Runtime\\Projectiles\\ArchToTileProjectile.cs",
"RelativeToolTip": "Assets\\Scripts\\Model\\Runtime\\Projectiles\\ArchToTileProjectile.cs",
"ViewState": "AgIAAA0AAAAAAAAAAAAgwB0AAAAjAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2026-07-20T15:24:47.183Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "EnterPoint.cs",
"DocumentMoniker": "C:\\Users\\User\\Documents\\Fork Project\\CSharpMainProjectMainFork\\Assets\\Scripts\\EnterPoint.cs",
"RelativeDocumentMoniker": "Assets\\Scripts\\EnterPoint.cs",
"ToolTip": "C:\\Users\\User\\Documents\\Fork Project\\CSharpMainProjectMainFork\\Assets\\Scripts\\EnterPoint.cs",
"RelativeToolTip": "Assets\\Scripts\\EnterPoint.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAwAAAAgAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2026-07-15T10:43:34.804Z",
"EditorCaption": ""
}
]
}
]
}
]
}
54 changes: 54 additions & 0 deletions .vs/CSharpMainProjectMainFork/v17/DocumentLayout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"Version": 1,
"WorkspaceRootPath": "C:\\Users\\User\\Documents\\Fork Project\\CSharpMainProjectMainFork\\",
"Documents": [
{
"AbsoluteMoniker": "D:0:0:{CCB6B313-5493-2A6D-73EF-BFA5DC7D9E24}|Root.csproj|c:\\users\\user\\documents\\fork project\\csharpmainprojectmainfork\\assets\\scripts\\model\\runtime\\projectiles\\archtotileprojectile.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{CCB6B313-5493-2A6D-73EF-BFA5DC7D9E24}|Root.csproj|solutionrelative:assets\\scripts\\model\\runtime\\projectiles\\archtotileprojectile.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
},
{
"AbsoluteMoniker": "D:0:0:{CCB6B313-5493-2A6D-73EF-BFA5DC7D9E24}|Root.csproj|C:\\Users\\User\\Documents\\Fork Project\\CSharpMainProjectMainFork\\assets\\scripts\\enterpoint.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
"RelativeMoniker": "D:0:0:{CCB6B313-5493-2A6D-73EF-BFA5DC7D9E24}|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": "ArchToTileProjectile.cs",
"DocumentMoniker": "C:\\Users\\User\\Documents\\Fork Project\\CSharpMainProjectMainFork\\Assets\\Scripts\\Model\\Runtime\\Projectiles\\ArchToTileProjectile.cs",
"RelativeDocumentMoniker": "Assets\\Scripts\\Model\\Runtime\\Projectiles\\ArchToTileProjectile.cs",
"ToolTip": "C:\\Users\\User\\Documents\\Fork Project\\CSharpMainProjectMainFork\\Assets\\Scripts\\Model\\Runtime\\Projectiles\\ArchToTileProjectile.cs",
"RelativeToolTip": "Assets\\Scripts\\Model\\Runtime\\Projectiles\\ArchToTileProjectile.cs",
"ViewState": "AgIAAAsAAAAAAAAAAAAQwCAAAAA+AAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2026-07-20T15:24:47.183Z",
"EditorCaption": ""
},
{
"$type": "Document",
"DocumentIndex": 1,
"Title": "EnterPoint.cs",
"DocumentMoniker": "C:\\Users\\User\\Documents\\Fork Project\\CSharpMainProjectMainFork\\Assets\\Scripts\\EnterPoint.cs",
"RelativeDocumentMoniker": "Assets\\Scripts\\EnterPoint.cs",
"ToolTip": "C:\\Users\\User\\Documents\\Fork Project\\CSharpMainProjectMainFork\\Assets\\Scripts\\EnterPoint.cs",
"RelativeToolTip": "Assets\\Scripts\\EnterPoint.cs",
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAwAAAAgAAAAAAAAAA==",
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
"WhenOpened": "2026-07-15T10:43:34.804Z",
"EditorCaption": ""
}
]
}
]
}
]
}
9 changes: 6 additions & 3 deletions Assets/Scripts/Controller/BotController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
using Model.Config;
using UnityEngine;
using Utilities;
//hello
//How are you?
//i'm fine
//hello my name is Bismi
//what is your name?
//my name is Niklle
//nice to meet you - Bismi
//nice to meet you too -Niklle
//Cool
namespace Controller
{
public class BotController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ protected override void UpdateImpl(float deltaTime, float time)
///////////////////////////////////////
// Insert you code here
///////////////////////////////////////


float maxHeight = totalDistance * 0.60f;
///////////////////////////////////////
// End of the code to insert
///////////////////////////////////////
Expand Down
20 changes: 16 additions & 4 deletions Assets/Scripts/UnitBrains/Player/SecondUnitBrain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,22 @@ 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);
float currentTemperature = GetTemperature ();

if (currentTemperature <= overheatTemperature)
{
return;
}

int projectilesCount = (int)currentTemperature + 1;

for (int i = 0; i < projectilesCount; i++)
{
var projectile = CreateProjectile(forTarget);
AddProjectileToList(projectile, intoList);
}

IncreaseTemperature();
///////////////////////////////////////
}

Expand Down
38 changes: 38 additions & 0 deletions CSharpMainProjectMainFork.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", "{7B826C27-ECBC-F079-E7EC-03B1A5B23888}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Assembly-CSharp-Editor", "Assembly-CSharp-Editor.csproj", "{534AC95E-1B6B-2C24-740E-FD77E80A44E3}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Root", "Root.csproj", "{CCB6B313-5493-2A6D-73EF-BFA5DC7D9E24}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "Tests.csproj", "{D558D539-D92C-F21E-9112-D2BFE09B6574}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7B826C27-ECBC-F079-E7EC-03B1A5B23888}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7B826C27-ECBC-F079-E7EC-03B1A5B23888}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7B826C27-ECBC-F079-E7EC-03B1A5B23888}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7B826C27-ECBC-F079-E7EC-03B1A5B23888}.Release|Any CPU.Build.0 = Release|Any CPU
{534AC95E-1B6B-2C24-740E-FD77E80A44E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{534AC95E-1B6B-2C24-740E-FD77E80A44E3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{534AC95E-1B6B-2C24-740E-FD77E80A44E3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{534AC95E-1B6B-2C24-740E-FD77E80A44E3}.Release|Any CPU.Build.0 = Release|Any CPU
{CCB6B313-5493-2A6D-73EF-BFA5DC7D9E24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CCB6B313-5493-2A6D-73EF-BFA5DC7D9E24}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CCB6B313-5493-2A6D-73EF-BFA5DC7D9E24}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CCB6B313-5493-2A6D-73EF-BFA5DC7D9E24}.Release|Any CPU.Build.0 = Release|Any CPU
{D558D539-D92C-F21E-9112-D2BFE09B6574}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D558D539-D92C-F21E-9112-D2BFE09B6574}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D558D539-D92C-F21E-9112-D2BFE09B6574}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D558D539-D92C-F21E-9112-D2BFE09B6574}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Loading