System directories
Method | Result |
---|---|
Environment.getDataDirectory() | /data |
Environment.getDownloadCacheDirectory() | /cache |
Environment.getRootDirectory() | /system |
External storage directories
using UnityEngine; | |
/* | |
* Swipe Input script for Unity by @fonserbc, free to use wherever | |
* | |
* Attack to a gameObject, check the static booleans to check if a swipe has been detected this frame | |
* Eg: if (SwipeInput.swipedRight) ... | |
* | |
* | |
*/ |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Deformable : MonoBehaviour | |
{ | |
//Public | |
public float minImpulse = 2; | |
public float malleability = 0.05f; | |
public float radius = 0.1f; |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
/// <summary> | |
/// Coroutine tracker. | |
/// | |
/// Custom handler for coroutines that tracks when they start and stop... | |
/// Uses Singleton class from: http://wiki.unity3d.com/index.php/Singleton | |
/// </summary> |
// | |
//Filename: maxCamera.cs | |
// | |
// original: http://www.unifycommunity.com/wiki/index.php?title=MouseOrbitZoom | |
// | |
// --01-18-2010 - create temporary target, if none supplied at start | |
// - Pan = Ctrl + button | |
// - Orbit = Alt+button | |
// - Zoom = Alt + Ctrl + button | |
// - Reset = Space |
using UnityEngine; | |
using System.Collections; | |
public class TouchCamera : MonoBehaviour { | |
public Transform target; | |
Vector3 f0Dir= Vector3.zero; | |
float zoomDistance= 5; | |
float theta= 0.0F; | |
float fai= 0.0F; | |
float dx= 0.0F; |
using UnityEngine; | |
using System.Collections; | |
public class AimCamera : MonoBehaviour { | |
public Transform target; | |
Vector3 f0Dir= Vector3.zero; | |
Vector3 upVal= Vector3.zero; | |
float zoomDistance= 5; | |
float theta= 0.0F; | |
float fai= 0.0F; |
System directories
Method | Result |
---|---|
Environment.getDataDirectory() | /data |
Environment.getDownloadCacheDirectory() | /cache |
Environment.getRootDirectory() | /system |
External storage directories
/* | |
* Copyright (c) 2013 Google Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | |
* in compliance with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software distributed under the License | |
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |