You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
542 B
21 lines
542 B
using System; |
|
using System.Collections; |
|
using System.Collections.Generic; |
|
using UnityEngine; |
|
using UnityEngine.UI; |
|
|
|
public class UsedHoseValue : MonoBehaviour { |
|
public static event Func<IntData, IntData> getAllUsedHose; |
|
|
|
private void OnEnable() |
|
{ |
|
//int value = 0; |
|
IntData data = new IntData(0); |
|
if(getAllUsedHose != null) |
|
{ |
|
//value = getAllUsedHose(value); |
|
data = getAllUsedHose(data); |
|
} |
|
GetComponent<Text>().text = data.value.ToString() + "盘"; |
|
} |
|
}
|
|
|