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
using UnityEngine;
public class AI_StateMachine : MonoBehaviour {
public Transform[] target;
private int destPoint = 0;
NavMeshAgent agent;
private float distance = 0.0f;
def remove_duplicates(grades):
newlist = []
for grade in grades:
if grade not in newlist:
newlist.append(grade)
return newlist
<!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>
<%@ WebHandler Language="C#" Debug="true" Class="name" %>
using System.Web;
public class name : IHttpHandler {
public void ProcessRequest (HttpContext context) {
}
using UnityEngine;
public class StateMachine : MonoBehaviour {
public Transform player;
public Transform TargetObj;
private bool isPaused;
private Renderer myWeapon;
public enum PlayerState {
import math
def destroy(x1,y1,r1,x2,y2,r2):
dist = math.sqrt((x2 - x1)**2 + (y2 - y1)**2)
if(dist - (r1+r2) < 0):
print("True")
else:
print("False")
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class TextFileHandler : MonoBehaviour {
public GameObject diaglogBox;
public Text dialogText;
public TextAsset textFile;
<?php
define('DB_USER','username');
define('DB_PASSWORD','password');
define('DB_HOST','localhost');
define('DB_NAME','dbname');
$db_connect = @mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) or die
('Could not connect to MYSQL '. mysqli_connect_error());
?>
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class Button_Groups : MonoBehaviour {
List<Rect> lstButtonItems = new List<Rect>();
List<Rect> lstButtonSkills = new List<Rect>();
using UnityEngine;
using UnityEngine.SceneManagement;
public class Button_LoadScene : MonoBehaviour {
public void LoadScene() {
SceneManager.LoadScene("unit2-2");
}