コード例 #1
0
ファイル: LevelGridData.cs プロジェクト: VQZX/BurnItDown
 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));
 }
コード例 #2
0
ファイル: LevelGridData.cs プロジェクト: VQZX/BurnItDown
 private void DrawSecetBlock()
 {
     GUILayout.Label("Secret Block Function:");
     BlockSecret =
         (BlockFunctionProperty)EditorGUILayout.ObjectField(BlockSecret, typeof(BlockFunctionProperty), false);
 }