This file contains 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 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. |
This file contains 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
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(); | |
} |
This file contains 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
float userTaglineWidth = userTaglineText.preferredWidth; | |
userTanlineCursor.transform.position = new Vector3(userTaglineText.transform.position.x + userTaglineWidth + 50,userTanlineCursor.transform.position.y,userTanlineCursor.transform.position.z); |
This file contains 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
[{"serverIP":"192.168.1.10","serverPort":"3000"}] |
This file contains 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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
using SocketIO; | |
using SocketMessages; | |
public class SocketManager : MonoBehaviour | |
{ | |
[Header("Managers")] |
This file contains 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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
[RequireComponent(typeof(AppManager))] | |
public class UserTimer : MonoBehaviour | |
{ | |
#region Timer Coroutines | |
public IEnumerator _NoshowTimer(int timeLimit) | |
{ |
This file contains 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
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') |
This file contains 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
# Logs | |
logs | |
*.log | |
npm-debug.log* | |
yarn-debug.log* | |
yarn-error.log* | |
# Runtime data | |
pids | |
*.pid |
This file contains 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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class VertexObjectSpawner : MonoBehaviour | |
{ | |
#region Variables | |
public GameObject[] objects; | |
public Mesh mesh; |
OlderNewer