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.
30 lines
713 B
30 lines
713 B
using System.Collections; |
|
using System.Collections.Generic; |
|
using UnityEngine; |
|
using AX.MessageSystem; |
|
|
|
/// <summary> |
|
/// 战术克隆基类 |
|
/// </summary> |
|
public abstract class TacticCloneBase : MonoBehaviour { |
|
|
|
public TacticCloneType cloneType;//克隆类型 |
|
public GameObject tacticPrefab;//克隆预设 |
|
|
|
public virtual void OnEnable() |
|
{ |
|
MessageDispatcher.AddListener("TACTIC_CLONE", Execute); |
|
} |
|
|
|
public virtual void OnDisable() |
|
{ |
|
MessageDispatcher.RemoveListener("TACTIC_CLONE", Execute); |
|
} |
|
|
|
public virtual void OnDestroy() |
|
{ |
|
MessageDispatcher.RemoveListener("TACTIC_CLONE", Execute); |
|
} |
|
|
|
public abstract void Execute(IMessage obj); |
|
}
|
|
|