This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ WebHandler Language="C#" Debug="true" Class="name" %> | |
using System.Web; | |
public class name : IHttpHandler { | |
public void ProcessRequest (HttpContext context) { | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"/> | |
<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> | |
<!-- jQuery library --> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
<script src="https://code.jquery.com/ui/1.11.4/jquery-ui.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def remove_duplicates(grades): | |
newlist = [] | |
for grade in grades: | |
if grade not in newlist: | |
newlist.append(grade) | |
return newlist | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RaycastHit hit | |
void Start () { | |
} | |
void Update () { | |
bool found = Physics.Raycast(transform.position, transform.forward, hit, 7); | |
if(!found) return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class AI_StateMachine : MonoBehaviour { | |
public Transform[] target; | |
public GameObject player; | |
private int destPoint = 0; | |
NavMeshAgent agent; | |
private float distance = 0.0f; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class Spawn_Manager : MonoBehaviour { | |
public Transform[] spawnPoints; | |
public float invokeTime; | |
public GameObject spawnObjects; | |
public int maxInvoke; | |
private int invokeCount; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class AsyncSample : MonoBehaviour { | |
IEnumerator Start() { | |
AsyncOperation async = Application.LoadLevelAsync("name of the scene here"); | |
yield return async; | |
Debug.Log("Loading complete"); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.SceneManagement; | |
public class LevelLoadManager : MonoBehaviour { | |
public GameObject player; | |
public GameObject trigger; | |
public Texture2D fadeOutTexture; // the texture that will overlay the screen. This can be a black image or a loading graphic | |
public float fadeSpeed = 0.2f; // the fading speed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.SceneManagement; | |
public class ClickToLoad : MonoBehaviour { | |
public void loadLevel(string nextLevel) { | |
StartCoroutine(DisplayLoading(nextLevel)); |