This file contains 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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Video; | |
public static class VideoPlayerExtentions | |
{ | |
public static void ShowFirstFrame(this VideoPlayer player, System.Action onCompleteCallback) | |
{ | |
VideoPlayer.FrameReadyEventHandler frameReadyHandler = null; |
This file contains 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
class AndroidAudio | |
{ | |
privateprivate static int GetDeviceMaxVolume() { | |
int streammusic = 3; | |
return deviceAudio.Call<int>("getStreamMaxVolume", streammusic); | |
} | |
private static void SetDeviceVolume(int value) { | |
int streammusic = 3; | |
int flagshowui = 0; |
This file contains 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
{ | |
"questions" : [ | |
{ | |
"question" : "question text", | |
"intro_video" : { | |
"video_atlas" : "{filename}", | |
"sections" : [ | |
{ | |
"key" : "{360|180|screen1|screen2}", | |
"position" : {"x":0,"y":0,"z":0}, |
This file contains 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
{ | |
"marker" : "{marker_data_file}", | |
"navigation_object" : "{model_file}", | |
"questions" : | |
[ | |
{ | |
"question" : | |
{ | |
"template" : "{id}", | |
"text" : |
This file contains 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
;End G-Code | |
M104 S0 ;extruder heater off | |
M140 S0 ;heated bed heater off (if you have it) | |
G91 ;relative positioning | |
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure | |
G1 Z+0.5 E-5 X-20 Y-20 F{travel_speed} ;move Z up a bit and retract filament even more | |
G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way | |
M84 ;steppers off | |
G90 ;absolute positioning | |
M81 |
This file contains 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
Operating manual | |
Product features | |
• High qualify high-definition Images FULL HD1080P DV DC | |
• Import OV9712 and hd camera | |
• Compact design, portable handheld DV DC | |
• Under low illumination hd video recording can be performed | |
• Video formal for 1280X720P | |
• Video formal for 1920X1080P | |
• Mode for taking pictures: 12M(4032X3024) | |
• Motion detecting video 720P and 1080P |
This file contains 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 System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class InterfaceObjectAttribute : PropertyAttribute | |
{ | |
public Type type; | |
public InterfaceObjectAttribute(Type type){ |
This file contains 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 System.IO; | |
using UnityEngine; | |
public abstract class ExternalScriptableObject : ScriptableObject | |
{ | |
void OnEnable() | |
{ | |
string filePath = Path.Combine(Application.dataPath, GetFileName()); | |
if( File.Exists(filePath) ){ | |
JsonUtility.FromJsonOverwrite( File.ReadAllText(filePath), this ); |
This file contains 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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace CoroutineUtil | |
{ | |
/* Warning these helper methods can generate plenty of garbage memory, use responsibly */ | |
public class WhileBoth : IEnumerator | |
{ |
This file contains 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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
[CreateAssetMenu] | |
public class Logger : ScriptableObject | |
{ | |
public const int Verbose = (int)Levels.Verbose; | |
public const int Debug = (int)Levels.Debug; | |
public const int Info = (int)Levels.Info; |