Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
function await(continuation) | |
local coro = coroutine.running() | |
local result | |
local async | |
continuation(function(err, value) | |
if async == nil then | |
async = false | |
result = value | |
if err then error(err) end | |
return |
fixed3 Darken (fixed3 a, fixed3 b) | |
{ | |
return min(a, b); | |
} | |
fixed3 Multiply (fixed3 a, fixed3 b) | |
{ | |
return a * b; | |
} |
private void takePicture() { | |
Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); | |
if (takePictureIntent.resolveActivity(getPackageManager()) != null) { | |
Uri photoURI = null; | |
try { | |
File photoFile = createImageFileWith(); | |
path = photoFile.getAbsolutePath(); | |
photoURI = FileProvider.getUriForFile(MainActivity.this, | |
getString(R.string.file_provider_authority), | |
photoFile); |
interface LitePresenter<T : Any> { | |
fun attachView(view: LiteView<T>) | |
fun detachView() | |
} | |
open class BaseLitePresenter<T : Any> : LitePresenter<T> { | |
private val buffer = ArrayList<T>() | |
private var view: LiteView<T>? = null | |
private var firstAttached = false |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class HomingMissile : MonoBehaviour | |
{ | |
[GetComponent] [SerializeField] private Rigidbody2D m_Rigidbody2D; | |
public Rigidbody2D Rigidbody2D { get => m_Rigidbody2D; } | |
public Transform Target; |
using System.Collections; | |
using System.Collections.Generic; | |
using Nrjwolf.Tools.AttachAttributes; // https://github.com/Nrjwolf/unity-auto-attach-component-attributes | |
using TMPro; | |
using UnityEngine; | |
[RequireComponent(typeof(TextMeshProUGUI))] | |
public class TextMeshProTeletypeEffect : MonoBehaviour | |
{ | |
[GetComponent] [SerializeField] private TextMeshProUGUI m_TextMeshProUGUI; |