// DoReaction遍历所有的conditions,如果所有conditions全部满足,运行相应的Reactions public void DoReaction(GameObject triggerObject, GameObject interactObject) { if (conditionCollection.CheckAllConditions(triggerObject, interactObject)) { reactionCollection.DoReactionFromCollection(triggerObject, interactObject); } }