Skip to content

Instantly share code, notes, and snippets.

@gino0717
gino0717 / gameover.cs
Created September 9, 2015 04:15
Game over page GUI
using UnityEngine;
using System.Collections;
public class GameOver : MonoBehaviour {
public GUISkin skin;
// Use this for initialization
void Start () {
}
@gino0717
gino0717 / StartGame
Created September 9, 2015 04:15
Just a game start page GUI
using UnityEngine;
using System.Collections;
public class StartGame : MonoBehaviour {
public GUISkin skin;
// Use this for initialization
void Start () {
}
@gino0717
gino0717 / Nav.cs
Last active September 9, 2015 04:17
the Navigation code for NPCs catch up the player
using UnityEngine;
using System.Collections;
namespace UnityStandardAssets.Characters.ThirdPerson
{
public class nav : MonoBehaviour {
public Transform aa;
public NavMeshAgent Nav{ get; private set; }
public int attackRange= 100;
public float attackangle=90.0f;
public Transform target;