void OnDestroy() { if (_instance == this) { _instance = null; } }
// Use this for initialization void Awake() { _acSet = new Dictionary <FC_AC_FACTIOH_TYPE, List <ActionController> >(); _acSet.Add(FC_AC_FACTIOH_TYPE.NEUTRAL_1, new List <ActionController>()); _acSet.Add(FC_AC_FACTIOH_TYPE.NEUTRAL_2, new List <ActionController>()); _acSet.Add(FC_AC_FACTIOH_TYPE.ENEMY, new List <ActionController>()); _acSet.Add(FC_AC_FACTIOH_TYPE.FRIEND, new List <ActionController>()); _acColliderMap = new Dictionary <Collider, ActionController>(); _instance = this; //_monsterLeader = null; //StartCoroutine(UpdateMonsterState()); }