void OnWizardCreate() { if (wall == null && Selection.activeGameObject != null) { wall = Selection.activeGameObject.GetComponent <MapWall> (); } MapEventActionManager.CreateResetWallAction(Selection.activeGameObject, wall, show); }