34 lines
777 B
C#
34 lines
777 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using DefaultNamespace.ProcessMode;
|
|
using MotionFramework;
|
|
using UnityEngine;
|
|
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("临时用电");
|
|
MotionEngine.GetModule<AnimationProcessManager>().HandleClick("现场调试");
|
|
|
|
OnOpenLight();
|
|
});
|
|
}
|
|
|
|
}
|