Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using RavelNetworking;
- public class InstantiateSphere : NetHelper
- {
- [RSync]
- public int Count, Age, Speed;
- [RSync]
- public string TextInfo;
- [RSync]
- public float Height, Size;
- public Transform instantiateSpot;
- private int PriorCount;
- private string PriorString;
- public void Update()
- {
- if (Count != PriorCount)
- {
- PriorCount = Count;
- Sync(true, "Count");
- }
- if (TextInfo != PriorString)
- {
- PriorString = TextInfo;
- Sync(true, "TextInfo");//true being that were syncing a variable we can do many at one time
- }
- if (Input.GetKeyDown(KeyCode.Escape))
- Sync("GiveCash", 4.5f, "levon");
- }
- [RSync]
- public void GiveCash(float amount, string player)
- {
- }
- [RSync]
- public void RubADub(string name, int age)
- {
- }
- [RSync]
- public void Crack(byte grams, object types)
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement