Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Savra · Jun 07, 2013 at 08:21 PM · timercountdownvisible

countdown timer on for example a wall of a building in your game?

Hi, How do you make a countdown timer on for example a wall of a building in your game?

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Memige · Jun 17, 2013 at 08:32 PM 0
Share

Hey Savra. Just following up, Have you gotten your timer working? If so could you flag any answers that helped you as the correct answer so that others will more easily find them if they run into the same question?

avatar image Savra · Jun 18, 2013 at 12:38 PM 0
Share

Yes i got it to work. Thank you :)

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Memige · Jun 07, 2013 at 08:35 PM

By on the wall, do you mean attached to the wall object, or graphically displaying on the wall in-game? Your wording seems to indicate the latter, in which case a I'd recommend looking into 3D Text

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Savra · Jun 07, 2013 at 08:58 PM 0
Share

$$anonymous$$ight have been a bit unclear. Yes i want a countdown to be displayed on a wall in-game.

avatar image Memige · Jun 07, 2013 at 09:00 PM 0
Share

Then yes, definately have a look at the link I posted. Once you understand how to create 3D Text, it's as simple as positioning the gameObject in your scene :)

avatar image Memige · Jun 07, 2013 at 09:04 PM 0
Share

Oh, and for an example of making a variable countdown, check out $$anonymous$$i$$anonymous$$o51's answer in This Thread. It's the one with a bunch of up votes (not the green one that was flagged as the answer)

avatar image Savra · Jun 07, 2013 at 09:09 PM 0
Share

Thank you so much :)

avatar image
0

Answer by Seizure · Jun 07, 2013 at 08:29 PM

Theres a couple of different ways to do this but I would suggest using: (Below code is C#)

 public bool destroyWallBool;  //This defaults to false
 public GameObject wall;
 void Start()
 {
      startCoroutine(countDown());
 }
 
 void Update()
 {
      if (destroyWall)
      {
           destroy(wall);//Or whatever it is you wanted to do with wall
      }
 }
 
 IEnumerator countDown()
 {
      yield return new waitForSeconds(20);
      destroyWallBool = true;
 }



`

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Savra · Jun 07, 2013 at 09:00 PM 0
Share

I might have been a bit unclear. Yes i want to display a countdown on a wall in-game.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

16 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to reset Time.time ? 1 Answer

advanced countdown timer help please 0 Answers

Timer script running too fast 1 Answer

How to use the same script on different objects at the same time? 1 Answer

Start timer on button press 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges