コード例 #1
0
 // Update is called once per frame
 void Update()
 {
     slider.value = energyScript.GetEenergyAmount();
 }
コード例 #2
0
 // Start is called before the first frame update
 void Start()
 {
     energyScript = energyObject.GetComponent <MoveablePawnScript>();
     slider       = GetComponent <Slider>();
     slider.value = energyScript.GetEenergyAmount();
 }