Basic Networking done

This commit is contained in:
2022-01-26 19:10:12 +05:30
parent d852b2bb2c
commit 891318680d
1111 changed files with 105855 additions and 780 deletions

View File

@@ -0,0 +1,23 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class SliderIndicator : MonoBehaviour
{
public Slider slider;
public Text text;
void Start()
{
slider.onValueChanged.AddListener(OnChanged);
text.text = slider.value.ToString();
}
void OnChanged(float value){
text.text = slider.value.ToString();
}
void OnValidate(){
if(GetComponent<Text>()!=null && text==null)
text = GetComponent<Text>();
}
}