1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using LitJson;
- namespace FSAssist {
- public class AssistMethods {
-
- public static bool IsRectContain(Vector3 minP1, Vector3 maxP1, Transform pos) {
- return false;
- }
-
- public static object Get(JsonData data, string key) {
- return null;
- }
-
- public static int ReadInt(JsonData data, string key) {
-
- if (data[key] == null) {
- return 0;
- }
- return (int)data[key];
- }
-
- public static int ReadInt(JsonData data, int index) {
-
- if (data[index] == null) {
- return 0;
- }
- return (int)data[index];
- }
-
- public static string ReadString(JsonData data, string key) {
-
- if (data[key] == null) {
- return null;
- }
- return (string)data[key];
- }
-
- public static string ReadString(JsonData data, int key) {
-
- if (data[key] == null) {
- return null;
- }
- return (string)data[key];
- }
- }
- }
|