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 martin101 · Dec 22, 2014 at 08:21 AM · interfaceexamples

interfaces ? whats going on here !!

alt textIf someone Could tell me what is going on in here with this script that would be great :)

I happen to have understood interfaces and have written very simple classes within one folder but this example is quite tedious.

Can you please explain me what is happening with the first 10 15 line in this example ?

interfaces.png (199.2 kB)
Comment
Add comment · Show 5
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 Parzivell · Dec 22, 2014 at 08:26 AM 1
Share

Not to be rude but there is no example

avatar image konsnos · Dec 22, 2014 at 08:42 AM 1
Share

You forgot to post the script.

avatar image martin101 · Dec 22, 2014 at 09:29 AM 0
Share

looks like my image did not upload properly apologies friends

avatar image martin101 · Dec 22, 2014 at 09:32 AM 0
Share

@Parzivell @$$anonymous$$onsnos i uploded the problem image please have a look

avatar image GameVortex · Dec 22, 2014 at 10:00 AM 0
Share

NameSpaces

Using Directive

1 Reply

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

Answer by LRG · Dec 22, 2014 at 09:49 AM

static CrossPlatformInputManager() is a static constructor.

It will be called only once, before any instance of the class is created, and is typically used for initializing the static members of a class etc.

In this case it is assigning different Input classes depending on whether the program is being compiled for mobile or not.

Comment
Add comment · Show 3 · 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 martin101 · Dec 22, 2014 at 09:52 AM 0
Share

thank you :) and what about those red line i have indicated with ( i mean in the code )

can you please reply with the link for documentation/manual where i can read about them

thanks man

avatar image LRG · Dec 22, 2014 at 10:00 AM 0
Share

ah, those are just namespaces Basically, to organize the code and to split it into modules.

avatar image martin101 · Dec 22, 2014 at 10:02 AM 0
Share

thank you , i just realised i wrote interface ins$$anonymous$$d of namespace. silly me

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

30 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 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

Multiple Cars not working 1 Answer

I made a better shader how do i fix[add _Shadow Strength]help???>Sorry that im asking for to much 1 Answer

If this Key is pressed do this animation 1 Answer

Airlock Door Code Problems [Solved] 1 Answer

[META] For The Noobies 0 Answers


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