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
#!/usr/bin/perl | |
use File::Copy; | |
use File::Find; | |
use File::Path; | |
use Cwd; | |
# Exoa SignAndPackage script v1.3 | |
# Author : Anthony Kozak :: exoa.fr | |
# Place this script in the same folder as the generated .app file from Unity | |
# YOU WOULD NEED IN THIS DIRECTOY: |
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; | |
/// <summary> | |
/// Be aware this will not prevent a non singleton constructor | |
/// such as `T myT = new T();` | |
/// To prevent that, add `protected T () {}` to your singleton class. | |
/// </summary> | |
public class Singleton<T> : MonoBehaviour where T : MonoBehaviour | |
{ | |
private static T _instance; |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class SwipeControl : MonoBehaviour | |
{ | |
private Vector3 fp; //First touch position | |
private Vector3 lp; //Last touch position | |
private float dragDistance; //minimum distance for a swipe to be registered |
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
// Copyright 2014 Invex Games http://invexgames.com | |
// 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 or implied. | |
// See the License for the specific language governing permissions and | |
// limitations under the License. |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class QualityManager : Singleton<QualityManager> { | |
private int QUALITY_INDEX = 0; | |
public int MIN_FPS = 28; | |
public Text qualityUIText; |
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
public class Log { | |
static bool ShowLogs = true; | |
Log(){ | |
#if Debug | |
ShowLogs = true; | |
#else | |
ShowLogs = false; | |
#endif | |
} |
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 System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using Syn.Log; | |
using Syn.Speech.Api; | |
using Syn.Speech.Logging; | |
using UnityEngine; | |
using UnityEngine.UI; |