Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using BeardedManStudios.Network;
- public class MoveBallUp : SimpleNetworkedMonoBehavior
- {
- [BRPC]
- private void MoveBall(Vector3 moveBy)
- {
- transform.position += moveBy;
- }
- private void Update()
- {
- if (Input.GetKeyDown(KeyCode.Space))
- RPC("MoveBall", new Vector3(0.35f, 1.2f, -2.32f));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment