Posts by Gabriel Marques • 139 points
6 posts
-
1
votes1
answer48
viewsA: Synchronize player and host movements
Hello, I don’t know how much of the tutorial you followed, but in this tutorial, what makes the characters have independent movements (each one controls yours) is the verification in the character’s…
-
1
votes1
answer118
viewsA: Break loop on page
Good, come on. From what I understand. After filling the select, you would like to send the form, but it continues in a loop the Ajax, right?! What you can do to solve this is to create a "lock"…
-
8
votes6
answers1578
viewsA: Is it good practice to use constructors (or magic methods) in interfaces?
In my conception, the use of interfaces is directly linked to the behavior and structure that is expected in the classes that will inherit it. On the other hand, constructors, are only methods…
-
0
votes1
answer96
viewsA: Error of arguments in Unity Photon
It’s been a long time since you asked the question, but if anyone still has that question, you can consult the answer. First, you have to keep in mind that to create a room in Photon you need to be…
-
1
votes2
answers5035
viewsA: How to access classes in Unity 3D (C#)
From what I understand, you have the two scripts, Gun and Player. If they are part of the same Gameobject (your player/FPS Controller), you can take the script as follows: private Pistol arma; void…
-
2
votes1
answer389
viewsA: Dodging an Obstacle without Navmeshagent
If you’re just avoiding navmesh because of the terrain, know that it works on any object as long as it’s marked "Static". You can see this in the documentation:…