Skip to content

Commit

Permalink
v0.4 commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sheldonlei committed Dec 16, 2020
1 parent fe34824 commit 510fb2d
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Assets/Scenes/Luna.unity
Original file line number Diff line number Diff line change
Expand Up @@ -6621,7 +6621,7 @@ MonoBehaviour:
globalEasing: 4
configReady: 1
inspStateFoldoutProcessing: 0
inspStateFoldoutSettings: 1
inspStateFoldoutSettings: 0
inspStateFoldoutVisemes: 0
inspCollectionDisplayMode: 0
inspAnalysisDisplay: 0
Expand Down
3 changes: 2 additions & 1 deletion Assets/Scripts/AudioControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ public class AudioControl : MonoBehaviour
static Object[] audioList;
static AudioSource audioPlayer;
static int maxAudio;
static int currentAudio = 0;
static int currentAudio;
GameObject character;

void Start()
{
character = GameObject.FindGameObjectWithTag("Player");
audioPlayer = gameObject.GetComponent<AudioSource>();
currentAudio = 0;

if (character.name == Global.luna)
{
Expand Down
2 changes: 2 additions & 0 deletions Assets/Scripts/EmotionInput.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using UnityEngine;
using UnityEngine.Audio;

// used for triggering event when detecting emotion shift

public class EmotionInput : MonoBehaviour
{
private MasterControl currentEvent;
Expand Down
7 changes: 4 additions & 3 deletions Assets/Scripts/EmotionUpdate.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
using System;
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

// used for constant update the most frequent emotion

public class EmotionUpdate : MonoBehaviour
{
float startTime;
Expand Down Expand Up @@ -36,7 +37,7 @@ void Update()
public void RequestSignal()
{
requester = new SignalRequester();
requester.message = "checking------runtime: " + currentTime;
requester.message = "runtime: " + currentTime + "\nagent emotion: " + EmotionInput.currentEmotion;

requester.Start();
emotionList.Dequeue();
Expand Down
2 changes: 2 additions & 0 deletions Assets/Scripts/SignalRequester.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
using NetMQ.Sockets;
using UnityEngine;

// create a thread instance to communicate with python

public class SignalRequester : RunAbleThread
{
public override void Run()
Expand Down
3 changes: 2 additions & 1 deletion Assets/Scripts/SlideControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ public class SlideControl : MonoBehaviour
static Renderer slideShader;
static Object[] textureList;
static int maxSlide;
static int currentSlide = 0;
static int currentSlide;

void Start()
{
// get the slide object's material
slide = GameObject.Find(Global.slideObj);
currentSlide = 0;
if (!slide)
{
print("slide gameobject not found");
Expand Down
5 changes: 4 additions & 1 deletion ProjectSettings/UnityConnectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ UnityConnectSettings:
m_TestMode: 0
m_IosGameId:
m_AndroidGameId:
m_GameIds: {}
m_GameIds:
AndroidPlayer:
iPhonePlayer:
tvOSPlayer:
m_GameId:
PerformanceReportingSettings:
m_Enabled: 0

0 comments on commit 510fb2d

Please sign in to comment.