34 lines
819 B
C#
34 lines
819 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using UnityEngine;
|
|
|
|
public class ClampAmmetersManager : MonoBehaviour
|
|
{
|
|
[SerializeField] List<ClampAmmetersInteractive> clampAmmetersInteractives= new List<ClampAmmetersInteractive>();
|
|
public Dictionary<int,float> data = new Dictionary<int,float>();
|
|
private void Awake()
|
|
{
|
|
run();
|
|
}
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
/// <summary>
|
|
/// »ñÈ¡µÍÏÂÔ¤ÉèÊý¾Ý
|
|
/// </summary>
|
|
void run()
|
|
{
|
|
clampAmmetersInteractives = GetComponentsInChildren<ClampAmmetersInteractive>().ToList();
|
|
}
|
|
void init()
|
|
{
|
|
for (int i = 0; i < data.Count; i++)
|
|
{
|
|
clampAmmetersInteractives[i].Fuan = data[i];
|
|
}
|
|
}
|
|
}
|