您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
48 行
935 B
48 行
935 B
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.Events;
|
|
using UnityEngine.Playables;
|
|
using UnityEngine.Rendering.HighDefinition;
|
|
|
|
public class LightEvents : MonoBehaviour
|
|
{
|
|
public UnityEvent onSwitchON;
|
|
public UnityEvent onSetON;
|
|
public UnityEvent onSwitchOFF;
|
|
public UnityEvent onSetOFF;
|
|
public UnityEvent onBreak;
|
|
public UnityEvent onSetBroken;
|
|
public UnityEvent onSpecialEvent;
|
|
|
|
public void SwitchON()
|
|
{
|
|
onSwitchON.Invoke();
|
|
}
|
|
public void SetON()
|
|
{
|
|
onSetON.Invoke();
|
|
}
|
|
public void SwitchOFF()
|
|
{
|
|
onSwitchOFF.Invoke();
|
|
}
|
|
public void SetOFF()
|
|
{
|
|
onSetOFF.Invoke();
|
|
}
|
|
public void Break()
|
|
{
|
|
onBreak.Invoke();
|
|
}
|
|
public void SpecialEvent()
|
|
{
|
|
onSpecialEvent.Invoke();
|
|
}
|
|
|
|
public void SetBroken()
|
|
{
|
|
onSetBroken.Invoke();
|
|
}
|
|
|
|
}
|