Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,109 @@
using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class DeathWall : MonoBehaviour {
[SerializeField]private GameObject prefab1;
[SerializeField]private GameObject prefab2;
[SerializeField]private GameObject prefab3;
[SerializeField]private GameObject Danger;
private Vector3 arrowX = new Vector3(0,0,0);
private Vector2 dangerposition;
private bool dangeronscreen = false;
private int randomNummer;
[SerializeField]private float timer;

void Start()
{
timer = 60;

}
// Update is called once per frame
void Update () {
if (timer < 5 && dangeronscreen == false)
{
float startTime = Time.time;
Instantiate(Danger, dangerposition, transform.rotation);
dangeronscreen = true;
}
if (timer < 2)
{
Debug.Log("opzich");
Danger.GetComponent<SpriteRenderer>().color = new Color(1f, 1f, 1, Mathf.Lerp(0, 1, Time.time));

}
if (timer > 0)
{
timer -= 1 * Time.deltaTime;
}
if (timer < 5)
{
arrowX = new Vector3(-10, 0, 0);
dangerposition = new Vector2(-5.5f, 0);
if (timer < 0)
{
StartCoroutine(LeftToRight());
timer = 60;
}
}
else if (Input.GetKeyDown(KeyCode.KeypadEnter))
{
arrowX = new Vector3(10, 0, 0);
StartCoroutine(RightToLeft());
}

}
IEnumerator LeftToRight()
{
for (int k = 1; k < 20; k++)
{
arrowX += new Vector3(1, 0, 0);
Vector3 arrowY = new Vector3(0, 0, 0);
Vector3 arrow = new Vector3(0, 0, 0);
for (int i = 0; i < 6; i++)
{
arrowY = new Vector3(0, Random.Range(-4.5f, 5.5f), 0);
arrow = (arrowX + arrowY);
StartTheDeathWall(arrow);
}
yield return new WaitForSeconds(1);
}

}

IEnumerator RightToLeft()
{
for (int k = 1; k < 19; k++)
{
arrowX -= new Vector3(1, 0, 0);
Vector3 arrowY = new Vector3(0, 0, 0);
Vector3 arrow = new Vector3(0, 0, 0);
for (int i = 0; i < 6; i++)
{
arrowY = new Vector3(0, Random.Range(-4.5f, 5.5f), 0);
arrow = (arrowX + arrowY);
StartTheDeathWall(arrow);
}
yield return new WaitForSeconds(1.2f);
}
}

void StartTheDeathWall(Vector3 HitLocation)
{
randomNummer = Random.Range(1,4);
Debug.Log(randomNummer);
if (randomNummer == 1)
{
Instantiate(prefab1, HitLocation, transform.rotation);
}
else if(randomNummer == 2)
{
Instantiate(prefab2, HitLocation, transform.rotation);
}
else if (randomNummer == 3)
{
Instantiate(prefab3, HitLocation, transform.rotation);
}

}
}
Binary file not shown.
@@ -63,11 +63,32 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Assets\Scripts\Game\CharacterDatabase.cs" />
<Compile Include="Assets\Scripts\Game\ControllerConnection.cs" />
<Compile Include="Assets\Scripts\Game\DeathWall.cs" />
<Compile Include="Assets\Scripts\Game\FadeScreen.cs" />
<Compile Include="Assets\Scripts\Game\GameMagager.cs" />
<Compile Include="Assets\Scripts\Game\ReadyPlayers.cs" />
<Compile Include="Assets\Scripts\Game\ScoreC.cs" />
<Compile Include="Assets\Scripts\Game\ScoreCounter.cs" />
<Compile Include="Assets\Scripts\Game\SplashScreen.cs" />
<Compile Include="Assets\Scripts\Interfaces\ControllerInterfaces.cs" />
<Compile Include="Assets\Scripts\Level\SafeZone\SafeZone.cs" />
<Compile Include="Assets\Scripts\Menu\CharacterSelection.cs" />
<Compile Include="Assets\Scripts\Menu\HubHandler.cs" />
<Compile Include="Assets\Scripts\Menu\MenuHandler.cs" />
<Compile Include="Assets\Scripts\Menu\MenuTransition.cs" />
<Compile Include="Assets\Scripts\Player\AbilityHandler.cs" />
<Compile Include="Assets\Scripts\Player\Grab\Grab.cs" />
<Compile Include="Assets\Scripts\Player\Grab\TapFree.cs" />
<Compile Include="Assets\Scripts\Player\Movement.cs" />
<Compile Include="Assets\Scripts\Player\Player.cs" />
<Compile Include="Assets\Scripts\Player\PlayerFactory.cs" />
<Compile Include="Assets\Scripts\Player\PlayerIndicator.cs" />
<Compile Include="Assets\Scripts\Player\PlayerRoles.cs" />
<Compile Include="Assets\Scripts\Player\Score.cs" />
<Compile Include="Assets\Scripts\Player\SwitchTeam.cs" />
<Compile Include="Assets\Scripts\SpriteStraightener.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\SyntaxTree\UnityVS\2015\UnityVS.CSharp.targets" />
</Project>
@@ -1,23 +1,20 @@
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2008

Project("{61A4C7FA-1FE9-B98B-78A5-9CE75C0FBA44}") = "BridgeTrolls_Resurrected", "Assembly-CSharp.csproj", "{0FF814F3-AB55-FEAD-6F62-E0E093E3F966}"

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2015
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BridgeTrolls_Resurrected.CSharp", "BridgeTrolls_Resurrected.CSharp.csproj", "{9B60C03C-B90E-CEF5-0642-8B776CC7064B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0FF814F3-AB55-FEAD-6F62-E0E093E3F966}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0FF814F3-AB55-FEAD-6F62-E0E093E3F966}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0FF814F3-AB55-FEAD-6F62-E0E093E3F966}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0FF814F3-AB55-FEAD-6F62-E0E093E3F966}.Release|Any CPU.Build.0 = Release|Any CPU
{9B60C03C-B90E-CEF5-0642-8B776CC7064B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9B60C03C-B90E-CEF5-0642-8B776CC7064B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9B60C03C-B90E-CEF5-0642-8B776CC7064B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9B60C03C-B90E-CEF5-0642-8B776CC7064B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = Assembly-CSharp.csproj
EndGlobalSection
EndGlobal