This commit is contained in:
parent
052971a5f8
commit
22720a0970
|
@ -1,3 +1,4 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using DefaultNamespace.ProcessMode;
|
||||
|
@ -7,13 +8,25 @@ using UnityEngine.UI;
|
|||
|
||||
public class ConsumePowerManager : MonoBehaviour
|
||||
{
|
||||
|
||||
public static ConsumePowerManager Instance;
|
||||
public delegate void OpenLight();
|
||||
public event OpenLight OnOpenLight;
|
||||
private void Awake()
|
||||
{
|
||||
Instance = this;
|
||||
}
|
||||
|
||||
public Button confirmBt;
|
||||
void Start()
|
||||
{
|
||||
|
||||
confirmBt.onClick.AddListener(delegate
|
||||
{
|
||||
MotionEngine.GetModule<AnimationProcessManager>().HandleClick(GameObject.Find("临时用电"));
|
||||
MotionEngine.GetModule<AnimationProcessManager>().HandleClick(GameObject.Find("现场调试"));
|
||||
|
||||
OnOpenLight();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ namespace DefaultNamespace.ProcessMode
|
|||
public event UIEventHandler OnUIEvent;
|
||||
public event SendMessagePrompt OnSendMessagePrompt;
|
||||
|
||||
|
||||
public void AddProcess(string type)
|
||||
{
|
||||
// if (!processes.ContainsKey(type))
|
||||
|
|
Loading…
Reference in New Issue