This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct TestModel: Identifiable { | |
let id = UUID() | |
var children: [TestModel]? { | |
(0..<5).map { _ in | |
TestModel() | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Written by Michael 'Searge' Stoyke in 03/2015 | |
// Released as public domain, do whatever you want with it! | |
using System; | |
using System.IO; | |
using System.Reflection; | |
using System.Text; | |
using Mono.CSharp; | |
namespace GameLibrary { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using System.Reflection; | |
using System.IO; | |
using RavenTech; | |
namespace RavenTech.Editor | |
{ | |
/// <summary> | |
/// 文档浏览器窗口 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.net.wifi.*; | |
import android.content.*; | |
import android.app.*; | |
import processing.core.*; | |
import android.os.Bundle; | |
import android.content.Context; | |
import android.hardware.Sensor; | |
import android.hardware.SensorManager; | |
import android.hardware.SensorEvent; | |
import android.hardware.SensorEventListener; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class JZ_PlanetHelper : MonoBehaviour | |
{ | |
// return x -180.0 ~ 180.0 | |
// return y -90.0 ~ 90.0 | |
public static Vector2 CartesianToPolarDegress(Vector3 point) | |
{ | |
var polar = Vector2.zero; |