• 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 /
This question was closed Nov 10, 2014 at 07:29 PM by Landern for the following reason:

Too subjective and argumentative, the forums are better suited for this type of question.

avatar image
0
Question by shirtface · Nov 10, 2014 at 07:28 PM · architecturestandard

I think my codes sucks and it's driving me crazy

Hello everyone. I'm currently working on a puzzle platformer project and I appreciate any advice. I'm a novice at unity and my code shows it. As I get deeper into this project, I'm starting to realize that my scripts are all over the place and there is minimal amounts of pattern usage and any semblance of a coherent architecture is non existent

. I'll give you an example.

In one of the scenes there is a puzzle piece that can be picked up and placed into the inventory, however the piece is hidden by an elevator. When this obstacle is removed the puzzle piece's box collider is set to active. The player can then pick up the piece which in turn is deactivated by the player's puzzle piece inventory script. However, this is a problem because once I get back on the elevator, its script will try to reactivate the collider. So now I feel that I must have a boolean or some sort of check that if it the puzzle piece is picked up by the player then don't bother with the piece anymore.

So I feel that this is convoluted for no reason and I'm over complicating things. Are there good and standard practices I should be using when developing games? Are there any good resources out there to read about on game architecture?

Comment
Add comment
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

0 Replies

  • Sort: 

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

Shadows with Transparent Standard Shader? 2 Answers

unity5.4+ Standard Shader Problem 0 Answers

Best practices for developing optimized interiors for Unity? 2 Answers

How do I dynamically generate scenes? 5 Answers

What is the best architecture for a 1vs1 turn based game? 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