Skip to content

Instantly share code, notes, and snippets.

View jade-itworkswhy's full-sized avatar
🇰🇷

Jade Park jade-itworkswhy

🇰🇷
View GitHub Profile
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
/*
http://forum.unity3d.com/threads/adjustable-character-spacing-free-script.288277/
Unity 5.4 compatible version
Produces an simple tracking/letter-spacing effect on UI Text components.
Set the spacing parameter to adjust letter spacing.
void FixedUpdate()
{
// Send Point Data of User Face To Server.
// Project Settings - Time - Fixed Timestep : 0.02
if (!serverDebugging)
{
if (isOccupied && userTracking)
this.gameObject.GetComponent<EmotionAnalysis>().SendFacePointData();
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
public class DebugNavigationManager : MonoBehaviour
{
public AppManager _Appmanager;
EventSystem system;
float userTaglineWidth = userTaglineText.preferredWidth;
userTanlineCursor.transform.position = new Vector3(userTaglineText.transform.position.x + userTaglineWidth + 50,userTanlineCursor.transform.position.y,userTanlineCursor.transform.position.z);
[{"serverIP":"192.168.1.10","serverPort":"3000"}]
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using SocketIO;
using SocketMessages;
public class SocketManager : MonoBehaviour
{
[Header("Managers")]
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(AppManager))]
public class UserTimer : MonoBehaviour
{
#region Timer Coroutines
public IEnumerator _NoshowTimer(int timeLimit)
{
require('dotenv').config()
const express = require('express')
const app = express()
const http = require('http').Server(app)
const io = require('socket.io')(http)
const socket_api = require('socket.io-client')('http://192.168.1.10:3000')
// const socket_api = require('socket.io-client')('http://nexon25.synology.me:3000')
//global constant
const port = 1234
const Printer = require('./printer')
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class VertexObjectSpawner : MonoBehaviour
{
#region Variables
public GameObject[] objects;
public Mesh mesh;