Skip to content
Snippets Groups Projects
Commit b2692fce authored by william's avatar william
Browse files

adicionado timer

parent a837b29c
No related branches found
No related tags found
No related merge requests found
fileFormatVersion: 2
guid: c6be56db94eee174e9c042ae2daac49e
folderAsset: yes
timeCreated: 1520467899
licenseType: Free
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
DS-Font's TrueType Fonts
Font name: DS-Digital (Normal, Bold, Italic, Bold Italic), Version 1.0
Author: Dusit Supasawat
Web Site: http://ds-font.hypermart.net
Contact me: Dusit Supasawat, 325/38 Suksawat32 Ratburana Bangkok Thailand 10140
Email address: dusit@mailcity.com
Thanks for trying! We hope you really enjoy this my typeface. This font is
distributed as shareware. You can use this font for a long time as you want.
After all, when you think this font can be usefulness for you. You can send
me some money, that would be way cool.
I'm only asking $20 US shareware fee per this typeface for personal use.
And $45 US is the usual amount per this typeface for commercial use.
Distribution: You are free to distribute this archive so long as this text
file is distributed with the archive, the font file have not been modified,
and it is understood that the font's copyright remains with the original
author (Dusit Supasawat).
To register send your payment to:
Dusit Supasawat
325/38 Suksawat32 Ratburana
Bangkok Thailand 10140
And fill out something as this order form, and send it in with your payment.
Font name:_________________________________________
Your information
Name:______________________________________________
Address:___________________________________________
City, State : _____________________________________
Zip Code:__________________________________________
Country:___________________________________________
E-MAIL address:____________________________________
You will receive fonts which you order by Email after registration. These fonts
will be generated for you by specify your name in font information.
\ No newline at end of file
fileFormatVersion: 2
guid: b91a12d74e9f10949a3e28b86278f62c
timeCreated: 1520467899
licenseType: Free
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
File added
fileFormatVersion: 2
guid: 8dbbc9cb2d3a43e4490edb7bf93d426e
timeCreated: 1520467899
licenseType: Free
TrueTypeFontImporter:
externalObjects: {}
serializedVersion: 4
fontSize: 16
forceTextureCase: -2
characterSpacing: 0
characterPadding: 1
includeFontData: 1
fontName: DS-Digital
fontNames:
- DS-Digital
fallbackFontReferences:
- {fileID: 12800000, guid: 1f727145ede18f9449168e7a6c200013, type: 3}
- {fileID: 12800000, guid: 27a04418a55c7c8478a0d05260a2ed43, type: 3}
customCharacters:
fontRenderingMode: 0
ascentCalculationMode: 1
useLegacyBoundsCalculation: 0
userData:
assetBundleName:
assetBundleVariant:
File added
fileFormatVersion: 2
guid: 27a04418a55c7c8478a0d05260a2ed43
timeCreated: 1520467899
licenseType: Free
TrueTypeFontImporter:
externalObjects: {}
serializedVersion: 4
fontSize: 16
forceTextureCase: -2
characterSpacing: 0
characterPadding: 1
includeFontData: 1
fontName: DS-Digital
fontNames:
- DS-Digital
fallbackFontReferences:
- {fileID: 12800000, guid: 1f727145ede18f9449168e7a6c200013, type: 3}
customCharacters:
fontRenderingMode: 0
ascentCalculationMode: 1
useLegacyBoundsCalculation: 0
userData:
assetBundleName:
assetBundleVariant:
File added
fileFormatVersion: 2
guid: 1f727145ede18f9449168e7a6c200013
timeCreated: 1520467899
licenseType: Free
TrueTypeFontImporter:
externalObjects: {}
serializedVersion: 4
fontSize: 16
forceTextureCase: -2
characterSpacing: 0
characterPadding: 1
includeFontData: 1
fontName: DS-Digital
fontNames:
- DS-Digital
fallbackFontReferences: []
customCharacters:
fontRenderingMode: 0
ascentCalculationMode: 1
useLegacyBoundsCalculation: 0
userData:
assetBundleName:
assetBundleVariant:
File added
fileFormatVersion: 2
guid: f3c494c728f3a394189385c709d453ae
timeCreated: 1520467900
licenseType: Free
TrueTypeFontImporter:
externalObjects: {}
serializedVersion: 4
fontSize: 16
forceTextureCase: -2
characterSpacing: 0
characterPadding: 1
includeFontData: 1
fontName: DS-Digital
fontNames:
- DS-Digital
fallbackFontReferences:
- {fileID: 12800000, guid: 1f727145ede18f9449168e7a6c200013, type: 3}
- {fileID: 12800000, guid: 27a04418a55c7c8478a0d05260a2ed43, type: 3}
- {fileID: 12800000, guid: 8dbbc9cb2d3a43e4490edb7bf93d426e, type: 3}
customCharacters:
fontRenderingMode: 0
ascentCalculationMode: 1
useLegacyBoundsCalculation: 0
userData:
assetBundleName:
assetBundleVariant:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class GameManager : MonoBehaviour
{
......@@ -10,6 +11,7 @@ public class GameManager : MonoBehaviour
[SerializeField] private GameObject opponentPrefab;
[SerializeField] private Transform[] targets;
[SerializeField] private Transform[] spawPoints;
[SerializeField] private Text timer;
private float currentTime;
private bool inTurn;
private bool threw;
......@@ -41,9 +43,8 @@ public class GameManager : MonoBehaviour
if (inTurn)
{
currentTime += Time.deltaTime;
//Debug.Log(currentTime);
timer.text = (turnDuration - currentTime).ToString();
}
//Debug.Log(1.0f/Time.deltaTime);
}
private void FixedUpdate()
......@@ -56,6 +57,7 @@ public class GameManager : MonoBehaviour
private IEnumerator endTurn()
{
timer.text = "Setting up";
inTurn = false;
currentTime = 0;
npcController.enabled = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment