Notifications
bg
ON
Osama Nori
Bursa, Turkey
0
Likes
0
Followers
0
Connections
All
Articles0
Games0
Showcases0
Column0
Jobs0
Hello Everyone, I'm a beginner to unity and I have a few questions regarding scripts. What is the best way to handle them? what I mean is should I attach any interactions involving the player to the player object or should I have them attached to each object separately and then refer to player variables in the start method. Are there advantages and disadvantages to both? Thank you.

6 days ago
Hello osama, When I was beginner I was totally dependent upon unity documentation. Documentation is very useful when you got stuck. For C# scripting, You have to start from very tiny means very very tiny concepts. If you understand all those things, then you can solve any problem and make small projects in the beginning. Don't build and run only make projects. thank you
AC
8 days ago
Hi Osama Nori your question is regarding script if you attach any instructions player to the player object it is follow for us. There are dependent but you can attach the instructions separately player and player object they are not follow for us its work separately
DC
8 days ago
Hi, first of all that depends, but my favourite approach is to have behaviours on objects and plenty of Interfaces so my player script basically finds corresponding interface on object to interact with and invokes function accordingly. Up side of that is modularity, nice thing about Interfaces is that they force declaration for function but don't force what that function do so you may have one interaction from player script side that will end up with different outcomes. If you want to dive deeper in Interfaces check out Unity Code Monkey, I've found he's explanation closest to my needs. All the luck with Your Unity Adventure!
About Me
No description
See more
Skills
No skills added yet
Certifications (0)
Import
See all
Osama Nori's liked projects (0)
No likes yet
Following (0)
Not following anyone yet
Followers (0)
No followers
Following Companies (0)
Not following anyone yet