public static GameObject GetGameObject(string value, IIDData idData, IGameObjectData gameObjectData) { switch (value) { case "this": return(gameObjectData.GetGameObject()); case "parent": var parent = gameObjectData.GetGameObject().transform.parent; return(parent != null ? parent.gameObject : null); default: return(idData.GetObjectByID(value)); } }
public GameObject GetGameObject() { return(gameObjectData.GetGameObject()); }