Player
📄️ General
This chapter explains how the client and server handle user input, fulfilling shot requests, registering damage taken and reflecting that on the Player component. Each player prefab (located under Tanks Multiplayer > Prefabs > Resources) has the Player script attached to it, handling all of the networked user interaction.
📄️ Movement
Different input controls are implemented for moving the player object: one for mobile and one for desktop (non-touch) devices. Behind the scenes, both input schemes are using the same target method on the Player component - the Move() method, taking a Vector2 variable for the direction the player wants to move at.
📄️ Properties
We discussed automatic network synchronization of the player using built-in components in Movement, so here comes the next easy-to-use network synchronization technique: networked variables.
📄️ Shooting
Turret Rotation