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.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -30,7 +30,7 @@ void OnTriggerEnter(Collider hittarget)
enemyGhoul = hittarget.GetComponent<GhoulController>();
Debug.Log("One Damage");
enemyGhoul.takeDamage(1);
StartCoroutine(enemyGhoul.Knockback(0.02f, 1750, enemyKnight.transform.position, transform.position));
StartCoroutine(enemyGhoul.Knockback(0.02f, 1750, enemyGhoul.transform.position, transform.position));

}
if (hittarget.gameObject.tag == "Knight")
@@ -24,7 +24,8 @@ public float BeginFade (int direction)
fadeDir = direction;
return (fadeSpeed);
}
void OnLevelWasLoaded()

void OnSceneWasLoaded()
{
BeginFade(-1);
}
@@ -31,7 +31,7 @@ public class GhoulController : MonoBehaviour
public LayerMask WhatIsEnemy;
private GameObject target;
public float targetdist;
float eneDist;
//float eneDist;

//Div Variables
bool IsAlive;
@@ -90,7 +90,7 @@ void Update ()
void FixedUpdate()
{

eneDist = Vector3.Distance(ghoul.position, target.transform.position);
//eneDist = Vector3.Distance(ghoul.position, target.transform.position);
playerAnim.SetFloat("Speed", ghoul.velocity.magnitude);
curSpeed = ghoul.velocity.magnitude;
RaycastHit rayOut;
@@ -1,5 +1,6 @@
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;

public class PlayerController : MonoBehaviour
{
@@ -304,7 +305,7 @@ void Update()
void Die()
{
//restart
Application.LoadLevel(0);
SceneManager.LoadScene(0);
}
public void takeDamage(int dmg)
{
@@ -364,14 +365,14 @@ IEnumerator OnTriggerEnter(Collider PlayerColli)
}
if (PlayerColli.gameObject.tag == "EndGame")
{
Application.LoadLevel(0);
SceneManager.LoadScene(1);
}
if (PlayerColli.gameObject.tag == "FinishGame")
{
fading.BeginFade(+1);
yield return new WaitForSeconds(3);

Application.LoadLevel(0);
SceneManager.LoadScene(0);
}

}
@@ -1,23 +1,12 @@
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;

public class StartMenu : MonoBehaviour
{

// Use this for initialization
void Start()
{

}

// Update is called once per frame
void Update()
{

}
public void StartGame()
{
Application.LoadLevel(1);
SceneManager.LoadScene(1);
}
public void ExitGame()
{
@@ -3,7 +3,7 @@

public class gameController : MonoBehaviour
{

/*
public Transform[] spawnPoints;
public Collider[] spawnTrigger;
@@ -33,5 +33,5 @@ void Update ()
{
}

*/
}