上海杨浦大连路地铁站单机版电子沙盘
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

49 lines
1.1 KiB

using System;
using System.Collections;
using System.Collections.Generic;
using AX.MessageSystem;
using UnityEngine;
public class ChangeParticle : MonoBehaviour
{
public ParticleEnum ParticleEnum;
// Use this for initialization
void Start()
{
MessageDispatcher.AddListener("ChangeParticle", ChangedParticle);
}
private void ChangedParticle(IMessage obj)
{
var ParticleEnum = (ParticleEnum)obj.Data;
ResManage.Instance.LoadParticleInEnum(ParticleEnum, this.transform);
}
// Update is called once per frame
void Update()
{
}
public void SSS()
{
MessageDispatcher.SendMessage("ChangeParticle", ParticleEnum);
}
}
public enum ParticleEnum
{
/// <summary>
///
/// </summary>
None,
/// <summary>直流喷水</summary>
WaterStraight,
/// <summary>开花喷水</summary>
WaterFlower,
/// <summary>喷雾喷水</summary>
WaterFog,
/// <summary>泡沫</summary>
Froth,
/// <summary>干粉</summary>
DryPowder,
Decontamination
}