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 UnityEngine; | |
using System.Collections; | |
using UnityEngine.UI; | |
using DG.Tweening; | |
using UnityEngine.EventSystems; | |
public class SettingsPanel : MonoBehaviour { | |
RectTransform _aRect; | |
bool _isHidden = true; |
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; | |
public class DragRigidbody : MonoBehaviour { | |
Vector3 screenPoint; | |
Vector3 offset; | |
void Update () { |
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 UnityEngine.EventSystems; | |
using UnityEngine; | |
public class Stem : MonoBehaviour, IPointerDownHandler, IBeginDragHandler, IDragHandler, IEndDragHandler, IPointerClickHandler | |
{ | |
Vector3 _pos; | |
Vector3 _posOffset; | |
RectTransform _thisRectTransform; | |
RectTransform _parentRectTransform; | |
Rigidbody2D _rb; |
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
IEnumerator VolumeChange (int stem, float initVol, float endVol, float time) { | |
float timeElapsed = 0f; | |
while (_stems[stem].volume != endVol) { | |
_stems[stem].volume = Mathf.Lerp(initVol, endVol, timeElapsed * 2); | |
timeElapsed += Time.deltaTime; | |
Debug.Log("timeElapsed: " + timeElapsed + "\n" + "Time.deltaTime: " + Time.deltaTime + "\n" + "volume: " + _stems[stem].volume); | |
yield return null; | |
} | |
_stems[stem].mute = !_stems[stem].mute; | |
} |
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
// basic persistant data saving and loading: https://unity3d.com/learn/tutorials/topics/scripting/persistence-saving-and-loading-data | |
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.UI; | |
using System; | |
using System.Runtime.Serialization.Formatters.Binary; | |
using System.IO; | |
public class IAPManager : MonoBehaviour { |
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 UnityEngine; | |
using DarkTonic.MasterAudio; | |
public class LanguageController: MonoBehaviour { | |
public static SystemLanguage _selectedLanguage; | |
void Awake () { | |
_selectedLanguage = GetLanguage(); | |
} |
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.Generic; | |
using UnityEngine; | |
using UnityEngine.Purchasing; | |
// Deriving the Purchaser class from IStoreListener enables it to receive messages from Unity Purchasing. | |
using UnityEngine.Purchasing.Security; | |
public class Purchaser : MonoBehaviour, IStoreListener |
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.Generic; | |
using UnityEngine; | |
using UnityEngine.Purchasing; | |
// Deriving the Purchaser class from IStoreListener enables it to receive messages from Unity Purchasing. | |
using UnityEngine.Purchasing.Security; | |
public class Purchaser : MonoBehaviour, IStoreListener |
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.Generic; | |
using UnityEngine; | |
using UnityEngine.Purchasing; | |
// Deriving the Purchaser class from IStoreListener enables it to receive messages from Unity Purchasing. | |
using UnityEngine.Purchasing.Security; | |
public class Purchaser : MonoBehaviour, IStoreListener |
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.Generic; | |
using UnityEngine; | |
using UnityEngine.Purchasing; | |
// Deriving the Purchaser class from IStoreListener enables it to receive messages from Unity Purchasing. | |
using UnityEngine.Purchasing.Security; | |
public class Purchaser : MonoBehaviour, IStoreListener |