//例。衝突した相手を破壊する。 protected override void Reset() { tags = new List <Tag> { Tag.SpawnedObject }; action = ActionType.Destroy; }
/// <summary> /// アクションを代表するの枚挙の本体デリゲートを取り出す /// </summary> /// <param name="type"></param> /// <returns></returns> public static Action <Object> GetAction(ActionType type) { Action <Object> target = default(Action <Object>); switch (type) { case ActionType.Destroy: target = Destroy; break; default: break; } return(target); }