This game is Fps escape game. player use gun and time slow ability.
main menu
stage 1
enemy type - robot / use take gun script and
stage 2
enemy type - zombie , robot / use navagent that can chase player.
end scene
use shake camera script and change camera position script
slowMotion script
this slow motion code active when player input right mouse down. slow time first and fast time more and more to normal time speed.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class slowMotion : MonoBehaviour {
public AudioSource playerSound;
public AudioClip slowSound;
public float slowdownFacotr = 0.05f;
public float slowdownLength = 2f;
void DoSlowmotion()
{
Time.timeScale = slowdownFacotr;
Time.fixedDeltaTime = Time.timeScale * .02f;
}
// Update is called once per frame
void Update ()
{
Time.timeScale += (1f / slowdownLength) * Time.unscaledDeltaTime;
Time.timeScale = Mathf.Clamp (Time.timeScale, 0f, 1f);
if (Input.GetButtonDown ("Fire2")) {
playerSound.PlayOneShot (slowSound);
DoSlowmotion ();
}
}
}
Move - W A S D / Shoot gun - left mouse / Ability - right mouse / Jump - space
Google Drive: Download Game
- Go ammor room and take weapon
- Kill enemy
- Escape from Space Shuttle