Skip to content

Instantly share code, notes, and snippets.

View moon-goon's full-sized avatar
🎯
Focusing

moongoon moon-goon

🎯
Focusing
  • Canada
View GitHub Profile
<%@ WebHandler Language="C#" Debug="true" Class="name" %>
using System.Web;
public class name : IHttpHandler {
public void ProcessRequest (HttpContext context) {
}
<!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>
def remove_duplicates(grades):
newlist = []
for grade in grades:
if grade not in newlist:
newlist.append(grade)
return newlist
using UnityEngine;
public class AI_StateMachine : MonoBehaviour {
public Transform[] target;
private int destPoint = 0;
NavMeshAgent agent;
private float distance = 0.0f;
RaycastHit hit
void Start () {
}
void Update () {
bool found = Physics.Raycast(transform.position, transform.forward, hit, 7);
if(!found) return;
using UnityEngine;
public class AI_StateMachine : MonoBehaviour {
public Transform[] target;
public GameObject player;
private int destPoint = 0;
NavMeshAgent agent;
private float distance = 0.0f;
using UnityEngine;
public class Spawn_Manager : MonoBehaviour {
public Transform[] spawnPoints;
public float invokeTime;
public GameObject spawnObjects;
public int maxInvoke;
private int invokeCount;
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");
}
}
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
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
public class ClickToLoad : MonoBehaviour {
public void loadLevel(string nextLevel) {
StartCoroutine(DisplayLoading(nextLevel));