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.
24 lines
578 B
24 lines
578 B
3 years ago
|
using UnityEngine;
|
||
|
using System.Collections;
|
||
|
using AX.MessageSystem;
|
||
|
|
||
|
public abstract class CarAttriMessage : MonoBehaviour {
|
||
|
|
||
|
protected virtual void OnDestroy()
|
||
|
{
|
||
|
MessageDispatcher.RemoveListener("CollectCarAttri", CollectCarAttri);
|
||
|
}
|
||
|
|
||
|
protected virtual void OnEnable()
|
||
|
{
|
||
|
MessageDispatcher.AddListener("CollectCarAttri", CollectCarAttri);
|
||
|
}
|
||
|
|
||
|
protected virtual void OnDisable()
|
||
|
{
|
||
|
MessageDispatcher.RemoveListener("CollectCarAttri", CollectCarAttri);
|
||
|
}
|
||
|
|
||
|
public abstract void CollectCarAttri(IMessage message);
|
||
|
}
|