Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- using BeardedManStudios.Network;
- public class ForgeExample_AuthoritativeControllerFloats : NetworkedMonoBehavior
- {
- [NetSync]
- public float horizontal = 0.0f;
- [NetSync]
- public float vertical = 0.0f;
- protected override void OwnerUpdate()
- {
- base.OwnerUpdate();
- horizontal = Input.GetAxis("Horizontal");
- vertical = Input.GetAxis("Vertical");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment