34 lines
799 B
C#
34 lines
799 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(GameObject.Find("临时用电"));
|
|
MotionEngine.GetModule<AnimationProcessManager>().HandleClick(GameObject.Find("现场调试"));
|
|
|
|
OnOpenLight();
|
|
});
|
|
}
|
|
|
|
}
|