Added full shout bubbles, generated random levels.

Signed-off-by: RosimInc <rosim_inc@hotmail.com>
This commit is contained in:
RosimInc 2015-08-16 23:37:17 -04:00
parent 9065c1502d
commit 8cededcf49
4 changed files with 13 additions and 8 deletions

View File

@ -18,7 +18,7 @@ Material:
first: first:
name: _MainTex name: _MainTex
second: second:
m_Texture: {fileID: 2800000, guid: 856ca562f724d934e89bca0999754c23, type: 3} m_Texture: {fileID: 2800000, guid: f0ae3145accc33c4f98e5ba66267789f, type: 3}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
data: data:

View File

@ -76,7 +76,7 @@ namespace DeathBook.Model
for (int i = 0; i < totalCount; i++) for (int i = 0; i < totalCount; i++)
{ {
p1 = people[i]; p1 = people[i];
missing = avgConnections - p1.FriendCount; // TODO Add randomness missing = Mathf.Clamp((int) Utils.GetRandomValue(avgConnections, avgConnections*1.2f, 3), 1, 100) - p1.FriendCount;
if (missing <= 0) if (missing <= 0)
continue; continue;

View File

@ -127,6 +127,7 @@ namespace DeathBook.Model
//Debug.Log("Person " + id + " died!"); //Debug.Log("Person " + id + " died!");
alive = false; alive = false;
CurrentStatus = null;
if (GameLevel.tutorialInt == 4) if (GameLevel.tutorialInt == 4)
GameLevel.tutorialInt = 5; GameLevel.tutorialInt = 5;
@ -202,7 +203,7 @@ namespace DeathBook.Model
if (!Alive) if (!Alive)
return; return;
int time = LevelManager.Instance.GameLevel.DayTime; int time = GameLevel.DayTime;
bool isOnline = IsOnline(time); bool isOnline = IsOnline(time);

View File

@ -6,12 +6,16 @@ using UnityEngine.UI;
public class Timer : MonoBehaviour public class Timer : MonoBehaviour
{ {
public Text TimerText; public Text TimerText;
int lastTime = -1;
void Update() void Update()
{ {
TimerText.text = Utils.GetTimeString(LevelManager.Instance.GameLevel.DayTime); int time = LevelManager.Instance.GameLevel.DayTime / 30;
if (time != lastTime)
{
TimerText.text = Utils.GetTimeString(time * 30);
lastTime = time;
}
} }
} }