public LevelGridData(SerializationInfo info, StreamingContext context) { coordinates = (Vector2Int)info.GetValue("coordinates", typeof(Vector2Int)); size = (Vector2Int)info.GetValue("coordinates", typeof(Vector2Int)); localPosition = (Vector3)info.GetValue("coordinates", typeof(Vector3)); rootTransform = (Transform)info.GetValue("coordinates", typeof(Transform)); blockType = (Type)info.GetValue("coordinates", typeof(Type)); blockSecret = (BlockFunctionProperty)info.GetValue("coordinates", typeof(BlockFunctionProperty)); }
private void DrawSecetBlock() { GUILayout.Label("Secret Block Function:"); BlockSecret = (BlockFunctionProperty)EditorGUILayout.ObjectField(BlockSecret, typeof(BlockFunctionProperty), false); }